code: public static <T extends AnnotatedElement> Predicate<T> elementAnnotatedWith(Class<? extends Annotation>
              annotationClass, boolean includeMetaAnnotations) {
          return candidate -> {
              if (candidate == null) {
                  return false;
              }
              Annotations.OnClass onClass = Annotations.on(candidate);
              if (includeMetaAnnotations) {
                  onClass.includingMetaAnnotations();
              }
              return onClass.find(annotationClass).isPresent();
          };
      }
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.