private function cloneStructure(array & $struct): void
    {
        foreach ($struct as & $v) {
            if (is_object($v)) {
                $v = clone $v;
            } elseif (is_array($v)) {
                $this->cloneStructure($v);
            }
        }
    }