public function cloneTreeIn(int $menuId, Tree $tree): Tree
    {
        if ($this->provider->mayCloneTree()) {
            return $this->provider->cloneTreeIn($menuId, $tree);
        }

        $this->cloneTreeRecursion($menuId, $tree);

        return $this->provider->buildTree($menuId, false);
    }