void () { @NonNls String text = "xxx<caret> \nyyy "; configureFromFileText("x.txt", text); ((DocumentEx)getEditor().getDocument()).clearLineModificationFlags(); stripTrailingSpaces(); checkResultByText(text); type('z'); stripTrailingSpaces(); checkResultByText("xxxz<caret>\nyyy "); }