LUCENE-6879: Allow to define custom CharTokenizer instances without subclassing using Java 8 lambdas or method references