code: private static boolean hasFieldProperModifier(Object object, Field field) {
          return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers())) || !(object instanceof Class<?> || Modifier
                  .isStatic(field.getModifiers())));
      }
docs: Checks for field proper modifier.
  
  @param object the object
  @param field  the field
  @return true, if successful