void () { configureFromFileText(getTestName(false) + ".txt", "text <caret>"); WriteCommandAction.runWriteCommandAction(getProject(), () -> { EditorModificationUtil.insertStringAtCaret(getEditor(), " ", false, false); }); checkResultByText("text <caret> "); }