public static < Type extends Annotation > Type getAnnotation ( final Class < ? > fromClass , final Class < Type > annotationType ) { if ( ClassReflection . isAnnotationPresent ( fromClass , annotationType ) ) { return ClassReflection . getDeclaredAnnotation ( fromClass , annotationType ) . getAnnotation ( annotationType ) ; } return null ; }
Utility method that allows to extract actual annotation from class bypassing LibGDX annotation wrapper . Returns null if annotation is not present .