private static void addRangeElem(final List<? super TextRange> result,
                                   CharSequence editorText,
                                   final ASTNode first,
                                   final int end) {
    if (first != null) {
      result.addAll(expandToWholeLine(editorText,
                                      new TextRange(first.getTextRange().getStartOffset(), end)));
    }
  }
private static void addRangeElem(final List<? super TextRange> result,
                                   CharSequence editorText,
                                   final ASTNode first,
                                   final int end)