code: public boolean declaresField(Field field) {
          try {
              type.getDeclaredField(field.getName());
              return true;
          }
          catch (NoSuchFieldException e) {
              return false;
          }
      }
docs: Determines whether T declares a field. This does not include inherited fields.
  
  @param field The field that we want to detect.
  @return True if T declares the field.