private function getSubtree(TreeExpression $expr)
    {
        foreach ($expr->getChildren() as $child) {
            if ($child->getType() == $this->operator)
                return $child;
        }

        $expr->addChild($subtree = new TreeExpression($this->operator));
        return $subtree;
    }