protected function setChildren(Block $block)
    {
        if (method_exists($block, 'setChildren')) {
            $children = $this->environment->getBlockChildren($block);
            $block->setChildren($children);
        }
    }