web/play-java-forms/src/main/java/play/data/validation/MappedConstraintValidatorFactory.java
private <T extends ConstraintValidator<?, ?>> T newInstance(Class<T> key) {
    try {
      return key.getDeclaredConstructor().newInstance();
    } catch (InstantiationException
        | RuntimeException
        | IllegalAccessException
        | NoSuchMethodException
        | InvocationTargetException ex) {
      throw new RuntimeException(ex);
    }
  }
private <T extends ConstraintValidator<?, ?>> T newInstance(Class<T> key) {
    try {
      return key.getDeclaredConstructor().newInstance();
    } catch (InstantiationException
        | RuntimeException
        | IllegalAccessException
        | NoSuchMethodException
        | InvocationTargetException ex) {
      throw new RuntimeException(ex);
    }
  }
need to do so.