@Override
    public void undo() {
      if (myElementListener instanceof UndoRefactoringElementListener listener) {
        PsiElement element = myPointer.getElement();
        if (element != null) {
          listener.undoElementMovedOrRenamed(element, myFqn);
        }
      }
    }
@Override
    public void undo()