void (@NotNull PsiElement newElement, @NotNull String oldQualifiedName) { if (myListener instanceof UndoRefactoringElementListener) { boolean hasGeneratedName = myConfiguration.isGeneratedName(); ((UndoRefactoringElementListener) myListener).undoElementMovedOrRenamed(newElement, oldQualifiedName); if (hasGeneratedName) { updateSuggestedName(); } } }