void () { init("<caret>text", PlainTextFileType.INSTANCE); final EditorSettings editorSettings = getEditor().getSettings(); final boolean old = editorSettings.isCaretInsideTabs(); try { editorSettings.setCaretInsideTabs(true); executeAction("EditorDownWithSelection"); checkResultByText("<selection>text<caret></selection>"); } finally { editorSettings.setCaretInsideTabs(old); } }