private function setExtensionConfigurationKeyForRewriter(
        ContainerBuilder $container,
        $rewriterServiceId,
        $extensionConfigKey
    ) {
        $rewriterDefinition = $container->getDefinition($rewriterServiceId);

        $methodCalls = $rewriterDefinition->getMethodCalls();

        $methodCalls[] = ['setExtensionConfigurationKey', [$extensionConfigKey]];

        $rewriterDefinition->setMethodCalls($methodCalls);
    }