private static void collectNestedLists(@NotNull List<Field> fields, @NotNull List<Field> result) {
      for (Field field : fields) {
        result.add(field);
        collectNestedLists(field.getNestedFields(), result);
      }
    }
private static void collectNestedLists(@NotNull List<Field> fields, @NotNull List<Field> result)