code: public static <T extends Annotation> Predicate<T> annotationAnnotatedWith(Class<? extends Annotation>
              annotationClass, boolean includeMetaAnnotations) {
          return candidate -> elementAnnotatedWith(annotationClass, includeMetaAnnotations)
                  .test(candidate.annotationType());
      }
docs: Checks if the candidate is annotated by the specified annotation or meta-annotation.
  
  @param annotationClass        the annotation to check for.
  @param includeMetaAnnotations if true, meta-annotations are included in the search.
  @return the predicate.