docs: private static boolean hasAnnotation(Annotation[] parameterAnnotations,  
                                                          Class<? extends Annotation> annotationClass) {
          for (Annotation annotation : parameterAnnotations) {
              if (annotation.annotationType().equals(annotationClass)) {
                  return true;
              }
          }
          return false;
      }