protected StackNode CreateStackNode(float x, float y) { StackNode stackNode = new StackNode(); stackNode.SetPosition(new Rect(x, y, 100, 100)); graphView.AddElement(stackNode); return(stackNode); }