public function setInstalledPackages(array $installedPackages)
    {
        $dictionary = [];
        foreach ($installedPackages as $installedPackage) {
            $dictionary[$installedPackage->getPackageHandle()] = $installedPackage;
        }
        $this->installedPackages = $dictionary;

        return $this;
    }