public <A extends Annotation> A getAnnotationFromList(Class<A> annotationClass, List<Annotation> annotationList,
            Predicate<Annotation> considerOtherAnnotation) {
        return AnnotationHelper.resolveAnnotation(annotationList, annotationClass, considerOtherAnnotation).orElse(null);
    }
Select the instance of the specified annotation type from the given list. Also considering meta annotations (i.e., annotations on annotations)
if a meta annotation is deemed eligible according to the given {@code Predicate}.

@param <A> type of annotation
@param annotationClass type of annotation
@param annotationList initial list of annotations to search in (potentially containing meta annotations)
@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/TypeContext.java