@Override
  public @Nullable TextRange getBoundRange() {
    List<TextRange> ranges = getTextRanges();
    return ranges.size() > 0 ?
           new TextRange(ranges.get(0).getStartOffset(), ranges.get(ranges.size() - 1).getEndOffset()) :
           null;
  }
@Override
  public @Nullable TextRange getBoundRange()