public function markReadOnly(): void
    {
        $this->readOnly = true;

        /** @var Config $value */
        foreach ($this->data as $value) {
            if ($value instanceof self) {
                $value->markReadOnly();
            }
        }
    }