code: private boolean hasAnnotation(JavaAnnotatedElement clazz, Class<? extends Annotation> annotationClazz) {
      return clazz.getAnnotations().stream()
          .filter(item -> item.getType().isA(annotationClazz.getName()))
          .count() > 0;
    }
docs: Checks if the given element has an annotation set.
  @param clazz QDox class
  @param annotationClazz Annotation class
  @return true if annotation is present