private boolean isNotLeaf(@NotNull TreePath path) {
      var model = getModel();
      return model != null && !model.isLeaf(path.getLastPathComponent());
    }
private boolean isNotLeaf(@NotNull TreePath path)