code: public static boolean hasAnnotation(final List<AnnotationInstance> annotations, final String annotationClaszName) {
          final DotName annotationName = DotName.createSimple(annotationClaszName);
          for (final AnnotationInstance annotation : annotations) {
              if (annotation.name().equals(annotationName)) {
                  return true;
              }
          }
          return false;
      }
docs: Verifies if a list of annotations contains a given one.
  
  @param annotations
  List with annotations to check.
  @param annotationClaszName
  Full qualified name of annotation class to find.
  
  @return TRUE if the list contains the annotation, else FALSE.