private static void addWordRange(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 == '-');
  }
private static void addWordRange(CharSequence editorText, int cursorOffset, ArrayList<? super TextRange> result)