private static @Nullable VirtualFile chooseDirectoryForFiles(Project project, JComponent parentComponent) {
    FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor()
      .withTitle(IdeCoreBundle.message("dialog.directory.for.downloaded.files.title"))
      .withDescription(IdeCoreBundle.message("dialog.directory.for.downloaded.files.description"));
    VirtualFile baseDir = project != null ? project.getBaseDir() : null;
    return IdeUiService.getInstance().chooseFile(descriptor, parentComponent, project, baseDir);
  }
private static @Nullable VirtualFile chooseDirectoryForFiles(Project project, JComponent parentComponent)