@Override
  @Nullable
  public PsiElement substituteElementToRename(@NotNull PsiElement elem, @Nullable Editor editor) {
    return elem.getNavigationElement();
  }
@Override
  @Nullable
  public PsiElement substituteElementToRename(@NotNull PsiElement elem, @Nullable Editor editor)