@Override
      public void modelChanged(@NotNull PomModelEvent event) {
        if (isChanging) return;

        TreeChangeEvent changeSet = (TreeChangeEvent)event.getChangeSet(pomModel.getModelAspect(TreeAspect.class));
        if (changeSet != null) {
          PsiFile file = changeSet.getRootElement().getPsi().getContainingFile();
          if (file instanceof XmlFile) {
            DomFileElementImpl<DomElement> element = getCachedFileElement((XmlFile)file);
            if (element != null) {
              fireEvent(new DomEvent(element, false));
            }
          }
        }
      }
@Override
      public void modelChanged(@NotNull PomModelEvent event)