void () { init(""" line1 line2 line3 line4"""); mouse().pressAt(1, 1).dragTo(2, 2).release(); executeAction(IdeActions.ACTION_EDITOR_TEXT_START_WITH_SELECTION); checkResultByText(""" <selection><caret>l</selection>ine1 <selection><caret>l</selection>ine2 line3 line4"""); }