docs: public static boolean hasAnnotation(ExecutableElement method, Class<? extends Annotation> ann) {
          List<? extends AnnotationMirror> annotationMirrors = method.getAnnotationMirrors();
          for (AnnotationMirror annotationMirror : annotationMirrors) {
              if (annotationMirror.getAnnotationType().toString().equals(ann.getName())) {
                  return true;
              }
          }
          return false;
      }