code: @Override
    public MtasSpanQuery rewrite(IndexReader reader) throws IOException {
      if (minimumSpanWidth != null && maximumSpanWidth != null
          && minimumSpanWidth > maximumSpanWidth) {
        return new MtasSpanMatchNoneQuery(this.getField());
      } else {
        return this;
      }
    }
docs: /*
  (non-Javadoc)
  
  @see
  org.apache.lucene.search.Query#rewrite(org.apache.lucene.index.IndexReader)