private static boolean contains(RangeMarker rangeMarker, int index) {
    return rangeMarker.getStartOffset() <= index && rangeMarker.getEndOffset() >= index;
  }
private static boolean contains(RangeMarker rangeMarker, int index)