code: public static <Type extends Annotation> Type getAnnotation(final Method method, final Class<Type> annotationType) {
          if (isAnnotationPresent(method, annotationType)) {
              return method.getDeclaredAnnotation(annotationType).getAnnotation(annotationType);
          }
          return null;
      }
docs: Utility method that allows to extract actual annotation from method, bypassing LibGDX annotation wrapper.
  Returns null if annotation is not present.
  
  @param method method that might be annotated.
  @param annotationType class of the annotation.
  @return an instance of the annotation if the method is annotated or null if not.
  @param <Type> type of annotation.