void (IonReader reader, ReadContext context, InternalIdeaProject project) { reader.next(); assertFieldName(reader, "ideaModules"); reader.stepIn(); List<InternalIdeaModule> ideaModules = new ArrayList<>(); InternalIdeaModule ideaModule; while ((ideaModule = readModule(reader, context)) != null) { ideaModule.setParent(project); ideaModules.add(ideaModule); } project.setModules(ideaModules); reader.stepOut(); }