private static void internalSelect(@NotNull JTree tree, @NotNull TreePath @NotNull ... paths) {
    assert EventQueue.isDispatchThread();
    if (paths.length == 0) return;
    tree.setSelectionPaths(paths);
    for (TreePath path : paths) {
      if (scrollToVisible(tree, path, Registry.is("ide.tree.autoscrollToVCenter", false))) {
        break;
      }
    }
  }
private static void internalSelect(@NotNull JTree tree, @NotNull TreePath @NotNull ... paths)