class ValidReferencesValidator implements ConstraintValidator<ValidReferences, Schema>, ValidationErrorDescriptorBuilder {

    @Override
    public boolean isValid(Schema value, ConstraintValidatorContext context) {
        return findInvalidReferences(value).isEmpty();
    }

}