void (@NotNull PsiNameIdentifierOwner element, @NotNull List<@NotNull String> suggestedNames) { if (myRenameSymbol != null) { throw new IllegalStateException("One element is already registered for rename"); } TextRange range = getRange(element); if (range == null) { throw new IllegalArgumentException("Element disappeared after postponed operations: " + element); } PsiElement nameIdentifier = element.getNameIdentifier(); TextRange identifierRange = nameIdentifier != null ? nameIdentifier.getTextRange() : null; myRenameSymbol = new ModRenameSymbol(myNavigationFile, new ModRenameSymbol.RenameSymbolRange(range, identifierRange), suggestedNames); }