code: public static Field[] getAllFields(final Class<?> clazz) {
          final List<Field> allFields = new ArrayList<>();
          addFields(allFields, clazz);
          return allFields.toArray(new Field[allFields.size()]);
      }
docs: Gets all fields of a class, including private fields in super-classes.
  
  @param clazz
  @return