public <A extends Annotation> A getAnnotation(Class<A> annotationClass, Predicate<Annotation> considerOtherAnnotation) {
        List<Annotation> annotationList = this.member.getAnnotations().asList();
        return this.getContext().getAnnotationFromList(annotationClass, annotationList, considerOtherAnnotation);
    }
Return the annotation of the given type on the member, if such an annotation is present.
<br>
Additionally, also consider annotations on annotations, if the given predicate indicates another annotation as eligible for holding the target.

@param <A> type of annotation to look-up
@param annotationClass annotation class to look up instance on member for
@param considerOtherAnnotation check whether some other annotation should also be checked for holding an instance of the target annotation
@return annotation instance (or {@code null} if no annotation of the given type is present

@since 4.30.0
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/MemberScope.java