void (@NotNull ModifiableRootModel rootModel) { final Project project = rootModel.getProject(); final VirtualFile root = createAndGetContentEntry(); rootModel.addContentEntry(root); inheritOrSetSDK(rootModel); if (isCreatingNewProject) { setupNewProject(project); } MavenUtil.runWhenInitialized(project, (DumbAwareRunnable)() -> { if (myEnvironmentForm != null) { myEnvironmentForm.setData(MavenProjectsManager.getInstance(project).getGeneralSettings()); } new MavenModuleBuilderHelper(myProjectId, myAggregatorProject, myParentProject, myInheritGroupId, myInheritVersion, myArchetype, myPropertiesToCreateByArtifact, MavenProjectBundle.message("command.name.create.new.maven.module")).configure(project, root, false); }); }