@Override
    public <A extends Annotation> A getContainerItemAnnotationConsideringFieldAndGetter(Class<A> annotationClass,
            Predicate<Annotation> considerOtherAnnotation) {
        A annotation = this.getContainerItemAnnotation(annotationClass, considerOtherAnnotation);
        if (annotation == null) {
            MemberScope<?, ?> associatedField = this.findGetterField();
            if (associatedField != null) {
                annotation = associatedField.getContainerItemAnnotation(annotationClass, considerOtherAnnotation);
            }
        }
        return annotation;
    }
Return the annotation of the given type on the method or its return type, if such an annotation is present.

@param <A> type of annotation to look-up
@param annotationClass annotation class to look up instance on member for
@return annotation instance (or {@code null} if no annotation of the given type is present
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/MethodScope.java