protected function initMultiVcsRepositories(Composer $composer, IOInterface $io)
    {
        $repoDownloader = new GitMultiRepoDownloader($io, $composer->getConfig());
        foreach ($this->getVcsTypes() as $type) {
            $composer->getDownloadManager()
                ->setDownloader($type, $repoDownloader);
            $composer->getRepositoryManager()
                ->setRepositoryClass($type, $this->getMultiRepositoryClassName());
        }

        return $this;
    }