awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java
public static Field getFieldAnnotatedWith(Object object, Class<? extends Annotation> annotationType) {
        return findSingleFieldUsingStrategy(new FieldAnnotationMatcherStrategy(annotationType), object, true,
                getType(object));
    }
public static Field getFieldAnnotatedWith(Object object, Class<? extends Annotation> annotationType) {
        return findSingleFieldUsingStrategy(new FieldAnnotationMatcherStrategy(annotationType), object, true,
                getType(object));
    }
public static Field getFieldAnnotatedWith ( Object object , Class < ? extends Annotation > annotationType ) { return findSingleFieldUsingStrategy ( new FieldAnnotationMatcherStrategy ( annotationType ) , object , true , getType ( object ) ) ; }
Get field annotated with a particular annotation. This method traverses
the class hierarchy when checking for the annotation.

@param object         The object to look for annotations. Note that if're you're
passing an object only instance fields are checked, passing a
class will only check static fields.
@param annotationType The annotation types to look for
@return A set of all fields containing the particular annotation(s).
@since 1.3
Get field annotated with a particular annotation . This method traverses the class hierarchy when checking for the annotation .