public static @NotNull TreePath createTreePath(TreePath parent, @NotNull Object component) {
    return parent != null
           ? parent.pathByAddingChild(component)
           : new CachingTreePath(component);
  }
public static @NotNull TreePath createTreePath(TreePath parent, @NotNull Object component)