@Override
      public int offsetToOriginal(int offsetWithMarkup) {
        int result = offsetWithMarkup;
        for (int offset : offsets) {
          if (offset >= result) break;
          result--;
        }
        return result;
      }
@Override
      public int offsetToOriginal(int offsetWithMarkup)