void (@NotNull Environment env) { env.logMessage(toString()); PsiDocumentManager.getInstance(getProject()).commitDocument(getFile().getViewProvider().getDocument()); WriteCommandAction.runWriteCommandAction(getProject(), this::performMutation); PsiTestUtil.checkPsiStructureWithCommit(getFile(), PsiTestUtil::checkStubsMatchText); }