private GraphNode AddNewNode(ActionGraphNodeBase node)
        {
            AssetDatabaseUtils.AddToAsset(Asset, node);

            switch (node)
            {
            case ActionGraphNode asAction:
            {
                Asset.Nodes.Add(asAction);
                break;
            }

            case AnyEntry asAnyEntry:
            {
                Asset.AnyEntryNode = asAnyEntry;
                break;
            }

            case EventEntry asEntry:
            {
                Asset.NamedEventEntries.Add(asEntry);
                break;
            }

            default:
            {
                Debug.LogError($"Unknown node {node}!");
                break;
            }
            }

            return(View.OnNodeAdded(Asset, node));
        }
        private GraphNode AddNewNode(ActionGraphNode node)
        {
            AddToAsset(node);

            Asset.Nodes.Add(node);

            return(View.OnNodeAdded(Asset, node));
        }