void (CharSequence editorText, int cursorOffset, ArrayList<? super TextRange> result) { SelectWordUtil.addWordSelection(false, editorText, cursorOffset, result, ch -> Character.isJavaIdentifierPart(ch) || ch == '\''); SelectWordUtil.addWordSelection(false, editorText, cursorOffset, result, ch -> Character.isJavaIdentifierPart(ch) || ch == '\'' || ch == '-'); }