protected function formatPackageNames(array $packageNames)
    {
        $requires = [];

        foreach ($packageNames as $packageName) {
            $packagePair = new PackageNameVersion($packageName);

            $requires[$packagePair->getName()] = $packagePair->getVersion();
        }

        return $requires;
    }