protected static @NotNull OpenProjectTask createOpenProjectOptions(@Nullable Project projectToClose,
                                                                     @Nullable Consumer<? super UserDataHolder> extraUserData) {
    return OpenProjectTaskKt.OpenProjectTask(builder -> {
      builder.setProjectToClose(projectToClose);
      builder.setNewProject(true);
      builder.setRunConfigurators(true);
      builder.setProjectCreatedWithWizard(true);
      builder.setRefreshVfsNeeded(false);
      builder.withBeforeOpenCallback(project -> {
        if (extraUserData != null) {
          extraUserData.accept(project);
        }
        project.putUserData(CREATED_KEY, true);
        return true;
      });
      return Unit.INSTANCE;
    });
  }
protected static @NotNull OpenProjectTask createOpenProjectOptions(@Nullable Project projectToClose,
                                                                     @Nullable Consumer<? super UserDataHolder> extraUserData)