void (@NotNull PomModelEvent event) { TreeChangeEventImpl changeSet = (TreeChangeEventImpl)event.getChangeSet(myTreeAspect); if(changeSet == null) return; PsiFile file = (PsiFile)changeSet.getRootElement().getPsi(); ((PsiDocumentManagerBase)PsiDocumentManager.getInstance(file.getProject())).getSynchronizer().processEvents(changeSet, file); if (PomModelImpl.shouldFirePhysicalPsiEvents(file)) { changeSet.fireEvents(); } else { ((PsiManagerImpl)file.getManager()).afterChange(false); } }