void () { initText("<selection>one<caret></selection> two \n" + "<selection>three<caret></selection> four "); executeAction("EditorCut"); executeAction("EditorLineEnd"); executeAction("EditorPaste"); checkResultByText(" twoone<caret> \n" + " fourthree<caret> "); }