public bool Contains(IEAElement element)
        {
            EARepository repository = EARepository.Instance;

            return
                ((from DiagramObject diagramObject in _native.DiagramObjects
                  select repository.GetElementByID(diagramObject.ElementID)).Any(
                     diagramElement => diagramElement.GUID == element.GUID));
        }
        public void HideConnectors(IEnumerable <string> stereotypes)
        {
            EARepository repository = EARepository.Instance;

            foreach (DiagramLink diagramLink in from DiagramLink diagramLink in _native.DiagramLinks
                     let connector = repository.GetConnectorByID(diagramLink.ConnectorID)
                                     where stereotypes.Contains(connector.Stereotype)
                                     select diagramLink)
            {
                diagramLink.IsHidden = true;
                diagramLink.Update();
            }
            _native.DiagramLinks.Refresh();
            repository.ReloadDiagram(_native.DiagramID);
        }