void (@NotNull PsiElement declaration) { TextRange range = getRange(declaration); if (range == null) { throw new IllegalArgumentException("Element disappeared after postponed operations: " + declaration); } String oldText = myTracker.myCopyFile.getText(); myTrackedDeclarations.add(new ModUpdateReferences(myNavigationFile, oldText, range, range)); }