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