void () { initText("a<selection>b<caret></selection>c"); ((EditorEx)getEditor()).setStickySelection(true); executeAction(IdeActions.ACTION_EDITOR_SWAP_SELECTION_BOUNDARIES); left(); checkResultByText("<selection><caret>ab</selection>c"); }