/** * Factory method to create a validator, which checks if value exists in the provided collection. * Error is created if not found * @param message text of a error to be created if value is not found * @param values * @return new validator */ public static <T> Validator<T> createEqualsValidator(final String message, final Collection<T> values) { return createEqualsValidator(message, Severity.ERROR, values); }