void () { init("text<caret>", PlainTextFileType.INSTANCE); executeAction(IdeActions.ACTION_EDITOR_TOGGLE_OVERWRITE_MODE); executeAction(IdeActions.ACTION_EDITOR_ENTER); checkResultByText("text\n<caret>"); }