code: public static List<Field> getPersistableFields(Class<?> clazz) {
      Field[] fields = clazz.getDeclaredFields();
      List<Field> output = new ArrayList<>(fields.length);
      for (Field field : fields) {
        if (!(field.isAnnotationPresent(Ignore.class) || isStatic(field))) {
          output.add(field);
        }
      }
      return output;
    }
docs: Returns all potentially persistable fields that were declared in the specified class. This
  method filters out the static fields and any fields that have an annotation of {@link Ignore},
  and returns the rest of the declared fields.
  
  @param clazz
  the class
  @return all potentially persistable fields that were declared in the specified class.