public static VirtualFile @NotNull [] chooseFiles(
    @NotNull FileChooserDescriptor descriptor,
    @Nullable Component parent,
    @Nullable Project project,
    @Nullable VirtualFile toSelect
  ) {
    var chooser = FileChooserFactory.getInstance().createFileChooser(descriptor, project, parent);
    return chooser.choose(project, toSelect);
  }
public static VirtualFile @NotNull [] chooseFiles(
    @NotNull FileChooserDescriptor descriptor,
    @Nullable Component parent,
    @Nullable Project project,
    @Nullable VirtualFile toSelect
  )