public function storeConfiguration(
        Configuration $targetConfiguration,
        PackageSet $requiredPackages,
        Configuration $newConfiguration
    ) {
        $key = $this->getKey($targetConfiguration, $requiredPackages);

        $this->configurations[$key] = $newConfiguration;
    }