RefactoringElementListener (@NotNull PsiElement oldElement) { RefactoringElementListener listener = myOldElementToTransactionListenerMap.get(oldElement); if(listener == null) { listener = new MyRefactoringElementListener(oldElement); myOldElementToTransactionListenerMap.put(oldElement, listener); } return listener; }