boolean (@NotNull Editor editor) { final SelectionModel selectionModel = editor.getSelectionModel(); final Document document = editor.getDocument(); return document.getLineNumber(selectionModel.getSelectionStart()) != document.getLineNumber(selectionModel.getSelectionEnd()); }