docs: @Override
    public MtasSpanQuery rewrite(IndexReader reader) throws IOException {
      MtasSpanQuery newQ = subQuery.rewrite(reader);
      if (newQ == null) {
        newQ = new MtasSpanMatchNoneQuery(subQuery.getField());
        return new MtasDisabledTwoPhaseIteratorSpanQuery(newQ);
      } else {
        newQ.disableTwoPhaseIterator();
        if (!newQ.equals(subQuery)) {
          return new MtasDisabledTwoPhaseIteratorSpanQuery(newQ).rewrite(reader);
        } else {
          return super.rewrite(reader);
        }
      }
    }