private void reloadProject(@NotNull Project project) {
    ExternalProjectsManagerImpl.getInstance(project).runWhenInitialized(() -> {
      ImportSpecBuilder importSpec = new ImportSpecBuilder(project, GradleConstants.SYSTEM_ID);
      if (createEmptyContentRoots) {
        importSpec.createDirectoriesForEmptyContentRoots();
      }
      importSpec.callback(new ConfigureGradleModuleCallback(importSpec));
      ExternalSystemUtil.refreshProject(PathKt.getSystemIndependentPath(rootProjectPath), importSpec);
    });
  }
private void reloadProject(@NotNull Project project)