code: public static boolean isAnnotationPresent(final AnnotatedElement annotatedElement, final Class<?> annotationClass) {
          return Stream.of(annotatedElement.getAnnotations()).map(Annotation::annotationType).map(Class::getName).anyMatch(n -> n.equals(annotationClass.getName()));
      }
docs: Checks if the annotation is present on the annotated element.
  <b>Note:</b> This step is necessary due to issues with external class loaders (e.g. Maven).
  The classes may not be identical and are therefore compared by FQ class name.