@Override
  public void setupRootModel(@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());
      }

      var future = sdkDownloadedFuture;
      if (null != future) {
        try {
          future.get(); // maven sync uses project JDK
        }
        catch (Exception e) {
          MavenLog.LOG.error(e);
        }
      }

      new MavenModuleBuilderHelper(myProjectId, myAggregatorProject, myParentProject, myInheritGroupId,
                                   myInheritVersion, myArchetype, myPropertiesToCreateByArtifact,
                                   MavenProjectBundle.message("command.name.create.new.maven.module")).configure(project, root, false);
    });
  }
@Override
  public void setupRootModel(@NotNull ModifiableRootModel rootModel)