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