void (String hidingLocalName) { PsiDocumentManager.getInstance(myProject).commitDocument(myDocument); for (Map.Entry<SmartPsiElementPointer, SmartPsiElementPointer> entry : myReferencesMap.entrySet()) { qualify(entry.getKey().getElement(), entry.getValue().getElement(), hidingLocalName); } }