private static @Nullable VirtualFile confirmOrChooseProjectDir(@NotNull Project project, @Nullable VirtualFile suggestedRoot) {
    if (suggestedRoot != null) {
      FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
      descriptor.setTitle(ApplicationBundle.message("light.edit.open.in.project.dialog.title"));
      return FileChooser.chooseFile(descriptor, project, suggestedRoot);
    }
    return null;
  }
private static @Nullable VirtualFile confirmOrChooseProjectDir(@NotNull Project project, @Nullable VirtualFile suggestedRoot)