List<TextRange> (@NotNull PsiElement e, @NotNull CharSequence editorText, int cursorOffset, @NotNull Editor editor) { final IElementType type = e.getNode().getElementType(); final StringLiteralLexer lexer = new StringLiteralLexer(type == SINGLE_QUOTED_STRING ? '\'' : '"', type, false, "/", false, false); final List<TextRange> result = new ArrayList<>(); SelectWordUtil.addWordHonoringEscapeSequences(editorText, e.getTextRange(), cursorOffset, lexer, result); final PsiElement parent = e.getParent(); result.add(ElementManipulators.getValueTextRange(parent).shiftRight(parent.getTextOffset())); return result; }