@Override
          public void elementRenamed(@NotNull PsiElement newElement) {
            if (!newElement.isValid()) return;
            renameEvents.putValue(elementListener, SmartPointerManager.createPointer(newElement));
          }
@Override
          public void elementRenamed(@NotNull PsiElement newElement)