public function mapConfig(array $config, array $configDefinitions): Generator
    {
        foreach ($configDefinitions as $configKey => $configDefinition) {
            yield $configKey => Config::fromArray(
                [
                    'configKey' => $configKey,
                    'definition' => $configDefinition,
                    'parameters' => iterator_to_array(
                        $this->parameterMapper->mapParameters(
                            $configDefinition,
                            $config[$configKey] ?? []
                        )
                    ),
                ]
            );
        }
    }