private TreePath getPath(@NotNull RadComponent component) {
    if (myTreeModel.getRoot() instanceof DefaultMutableTreeNode root) {
      DefaultMutableTreeNode node = TreeUtil.findNodeWithObject(root, component);
      return node == null ? null : new TreePath(node.getPath());
    }
    return null;
  }
private TreePath getPath(@NotNull RadComponent component)