private void UpdateGroups()
        {
            var groups = canvas.GetGroups();

            Groups.ClearAndAddRange(
                groups.Select((g, i) => new TreeViewItem(
                                  $"Group {i + 1}",
                                  g.Select(m => new TreeViewItem(m.ToString(), Array.Empty <TreeViewItem>())).ToList())));
        }