docs: @Override
    public MtasSpanQuery rewrite(IndexReader reader) throws IOException {
      MtasSpanQuery newQuery = query.rewrite(reader);
      if (maximumLeft == 0 && maximumRight == 0) {
        return newQuery;
      } else if (!query.equals(newQuery)) {
        return new MtasMaximumExpandSpanQuery(newQuery, minimumLeft, maximumLeft,
            minimumRight, maximumRight);
      } else {
        return super.rewrite(reader);
      }
    }