docs: public static <T extends Annotation> T getClosestAnnotation(Method method, Class<T> typeOfT) {
      T annotation = method.getAnnotation(typeOfT);
      if (annotation == null) {
  
        Class<?> clazzToIntrospect = method.getDeclaringClass();
        while (annotation == null && clazzToIntrospect != null) {
          annotation = clazzToIntrospect.getAnnotation(typeOfT);
          clazzToIntrospect = clazzToIntrospect.getSuperclass();
        }
      }
  
      return annotation;
    }