List<TextRange> (@NotNull PsiElement e, @NotNull CharSequence editorText, int cursorOffset, @NotNull Editor editor) { List<TextRange> ranges; if (canSelect(e)) { ranges = super.select(e, editorText, cursorOffset, editor); } else { ranges = new ArrayList<>(); } SelectWordUtil.addWordOrLexemeSelection(editor.getSettings().isCamelWords(), editor, cursorOffset, ranges); return ranges; }