protected function buildSettings($keys, $value) {
        $result = [];

        $index = array_shift($keys);

        if (!isset($keys[0])) {
            $result[$index] = $value;
        } else {
            $result[$index] = $this->buildSettings($keys, $value);
        }

        return $result;
    }