Lucene\TreeExpression::addexpressions method.