private @Nullable TreePath getRootPath() {
    var model = treeModel;
    if (model == null) {
      return null;
    }
    var rootObject = model.getRoot();
    if (rootObject == null) {
      return null;
    }
    return new CachingTreePath(rootObject);
  }
private @Nullable TreePath getRootPath()