public static ComponentQueryDeclarationModel CreateQueryFromGameObject(this VSGraphModel graphModel, GameObject gameObject)
        {
            EcsStencil stencil = graphModel.Stencil as EcsStencil;

            string queryName = gameObject.name + " Query";

            List <TypeHandle> componentTypes = stencil.GetEcsComponentsForGameObject(gameObject);

            AddConvertToEntityComponentIfNeeded(gameObject);

            return(graphModel.CreateComponentGroup(queryName, componentTypes));
        }