static @Nullable CachingTreePath ensureCaching(@Nullable TreePath path) {
    if (path == null) return null;
    if (path instanceof CachingTreePath cachingTreePath) return cachingTreePath;
    return new CachingTreePath(ensureCaching(path.getParentPath()), path.getLastPathComponent());
  }
static @Nullable CachingTreePath ensureCaching(@Nullable TreePath path)