public static void selectNode(final @NotNull JTree tree, final TreeNode node) {
    selectPath(tree, getPathFromRoot(node));
  }
public static void selectNode(final @NotNull JTree tree, final TreeNode node)