void (@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; } } }