void () { configureFromFileText("x.txt", "xxx<caret> \nZ "); type(' '); getEditor().getCaretModel().moveToOffset(getEditor().getDocument().getText().indexOf('Z') + 1); type('Z'); stripTrailingSpaces(); checkResultByText("xxx\nZZ<caret>"); }