private static @Nullable DefaultMutableTreeNode addPathToActionsTree(@NotNull JTree tree, @NotNull ActionUrl url) {
    TreePath treePath = CustomizationUtil.getTreePath(tree, url);
    if (treePath == null) return null;
    DefaultMutableTreeNode node = (DefaultMutableTreeNode)treePath.getLastPathComponent();
    int absolutePosition = url.getAbsolutePosition();
    if (node.getChildCount() >= absolutePosition && absolutePosition >= 0) {
      DefaultMutableTreeNode newNode;
      if (url.getComponent() instanceof Group o) {
        newNode = ActionsTreeUtil.createNode(o);
      }
      else {
        newNode = new DefaultMutableTreeNode(url.getComponent());
      }
      node.insert(newNode, absolutePosition);
      return newNode;
    }
    return null;
  }
private static @Nullable DefaultMutableTreeNode addPathToActionsTree(@NotNull JTree tree, @NotNull ActionUrl url)