code: @Override
      public boolean isDeclaredAnnotationWithin(Collection<String> annotationNames) {
          if (declaredAnnotations != null) {
              for (AnnotationInfo annotation : declaredAnnotations) {
                  if (annotationNames.contains(annotation.getAnnotationClassName())) {
                      return true;
                  }
              }
          }
  
          return false;
      }
docs: Optimized to iterate across the declared annotations first.