void () { init("", PlainTextFileType.INSTANCE); ((EditorEx)getEditor()).setOneLineMode(true); CopyPasteManager.getInstance().setContents(new StringSelection("a\rb")); executeAction(IdeActions.ACTION_EDITOR_PASTE); checkResultByText("a b<caret>"); }