List<Field> (@NotNull Class<?> clazz) { List<Field> result = new ArrayList<>(); for (Class<?> c : JBIterableClassTraverser.classTraverser(clazz)) { Collections.addAll(result, c.getDeclaredFields()); } return result; }