code: public static <T extends Annotation> T tagAnnotation(Annotation annotation, Class<T> tagClass) {
          Class<?> c = annotation.annotationType();
          for (Annotation a : c.getAnnotations()) {
              if (tagClass.isInstance(a)) {
                  return (T) a;
              }
          }
          return null;
      }
docs: Returns the {@link Annotation} tagged on another annotation instance.
  
  @param annotation
  the annotation instance
  @param tagClass
  the expected annotation class
  @param <T>
  the generic type of the expected annotation
  @return
  the annotation tagged on annotation of type `tagClass`