@Override public TokenStream create(TokenStream tokenStream) { return new LimitTokenCountFilter(tokenStream, maxTokenCount, consumeAllTokens); }
@Override public TokenStream create(TokenStream input) { return new LimitTokenCountFilter(input, maxTokenCount, consumeAllTokens); }