protected function handleCreatedExpressions(array $expressions, $conjunction)
{
$expressionCounter = count($expressions);
switch ($expressionCounter) {
case 0:
// no expressions - nothing to do
break;
case 1:
$this->listBuilder->addExpression($expressions[0]);
break;
default:
$conjunctionExpression = $this->createConjunctionExpression($expressions, $conjunction);
$this->listBuilder->addExpression($conjunctionExpression);
break;
}
}