void () { if (elementListener instanceof UndoRefactoringElementListener) { PsiElement element = pointer.getElement(); if (element != null) { ((UndoRefactoringElementListener)elementListener).undoElementMovedOrRenamed(element, fqn); } } }