protected override void OnConnectToChild(Connection connection)
 {
     if (connection.Target.Owner is BehaviourTreeEditorNode asBehaviour)
     {
         Presenter.OnConnectNodes(TreeNode, asBehaviour.TreeNode);
     }
 }
        protected override void OnConnectToChild(GraphNode node)
        {
            var asBehaviour = node as BehaviourTreeEditorNode;

            if (asBehaviour != null)
            {
                Presenter.OnConnectNodes(TreeNode, asBehaviour.TreeNode);
            }
        }