public static boolean rangesContain(List<? extends TextRange> rangeList, int offset) {
    return rangesContain(rangeList, 0, rangeList.size() - 1, offset);
  }
public static boolean rangesContain(List<? extends TextRange> rangeList, int offset)