@Override
    void doActualPsiChange(@NotNull PsiFile file, @NotNull TreeChangeEventImpl event) {
      event.addElementaryChange(myOldNode);
      ((ReparseableASTNode) myOldNode).applyReplaceFileOnReparse(file, myNewNode);
    }
@Override
    void doActualPsiChange(@NotNull PsiFile file, @NotNull TreeChangeEventImpl event)