private static Size2D CalculateSize([NotNull] IDiagramNode diagramNode, [CanBeNull] GroupLayoutInfo childrenArea) { return(Size2D.StackVertically(diagramNode.PayloadAreaSize, childrenArea?.Rect.Size ?? Size2D.Zero)); }