code: public static Field[] getAllFields(Class<?> clz, boolean includeStatic) {
      return Arrays.stream(getAllFields(clz))
          .filter(f -> includeStatic || !Modifier.isStatic(f.getModifiers()))
          .toArray(Field[]::new);
    }
docs: Get all fields
  
  @param clz
  @param includeStatic include static fields or not
  @return