public void ShowDependencies(
            DependencyExplorerWindowViewModel viewModel, NodeName nodeName, bool isSourceItem)
        {
            var hiddenNodes = isSourceItem ? viewModel.HiddenSourceNodes : viewModel.HiddenTargetNodes;

            Node node = hiddenNodes.FirstOrDefault(n => n.Name == nodeName);

            if (node != null)
            {
                hiddenNodes.Remove(node);
            }

            viewModel.ModelChanged();
            viewModel.NotifyAll();
        }
        public void HideDependencies(
            DependencyExplorerWindowViewModel viewModel, NodeName nodeName, bool isSourceItem)
        {
            if (!modelService.TryGetNode(nodeName, out Node node))
            {
                return;
            }

            var hiddenNodes = isSourceItem ? viewModel.HiddenSourceNodes : viewModel.HiddenTargetNodes;

            if (!hiddenNodes.Contains(node))
            {
                hiddenNodes.Add(node);
            }

            viewModel.ModelChanged();
            viewModel.NotifyAll();
        }