public static @NotNull TreePath getPathFromRoot(@NotNull TreeNode node) {
    TreeNode[] path = getPathFromRootTo(null, node, false);
    return new CachingTreePath(path);
  }
public static @NotNull TreePath getPathFromRoot(@NotNull TreeNode node)