awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java
private static boolean hasFieldProperModifier(Object object, Field field) {
        return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers())) || !(object instanceof Class<?> || Modifier
                .isStatic(field.getModifiers())));
    }
private static boolean hasFieldProperModifier(Object object, Field field) {
        return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers())) || !(object instanceof Class<?> || Modifier
                .isStatic(field.getModifiers())));
    }
Checks for field proper modifier.

@param object the object
@param field  the field
@return true, if successful