private void OnRemoveDiagramNodeRequested(IDiagramNode diagramNode)
 {
     if (_diagramNodeToViewModelMap.TryGet(diagramNode.Id, out var diagramNodeViewModel))
     {
         RemoveDiagramNodeRequested?.Invoke(diagramNodeViewModel);
     }
 }
        private void OnRemoveDiagramNodeRequested(DiagramNodeViewModel diagramNodeViewModel)
        {
            DiagramViewportViewModel.StopFollowingDiagramNodes();
            if (RelatedNodeListBoxViewModel.OwnerDiagramShape == diagramNodeViewModel)
            {
                HideRelatedNodeListBox();
            }

            RemoveDiagramNodeRequested?.Invoke(diagramNodeViewModel.DiagramNode);
        }