docs: public MtasSpanSequenceItem rewrite(IndexReader reader) throws IOException {
      MtasSpanQuery newSpanQuery = spanQuery.rewrite(reader);
      if (!newSpanQuery.equals(spanQuery)) {
        return new MtasSpanSequenceItem(newSpanQuery, optional);
      } else {
        return this;
      }
    }