void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiFile file = element.getContainingFile(); final Document document = file.getViewProvider().getDocument(); if (myOriginal.equals(document.getText(TextRange.create(myStartOffset, myEndOffset)))) { document.replaceString(myStartOffset, myEndOffset, myReplacement); } }