code: public static Predicate<Field> ofType(Class<?> type) {
          return field -> field.getType().equals(type);
      }
docs: Create a predicate to check that a field has a certain type.
  
  @param type of the field to check
  @return Predicate to check that a field has a certain type