docs: @Override
    public MtasSpanWeight createWeight(IndexSearcher searcher,
        boolean needsScores, float boost) throws IOException {
      List<MtasSpanSequenceQueryWeight> subWeights = new ArrayList<>();
      SpanWeight ignoreWeight = null;
      for (MtasSpanSequenceItem item : items) {
        subWeights.add(new MtasSpanSequenceQueryWeight(
            item.getQuery().createWeight(searcher, false, boost), item.isOptional()));
      }
      if (ignoreQuery != null) {
        ignoreWeight = ignoreQuery.createWeight(searcher, false, boost);
      }
      return new SpanSequenceWeight(subWeights, ignoreWeight, maximumIgnoreLength,
          searcher, needsScores ? getTermContexts(subWeights) : null, boost);
    }