protected function getPackageRequirementsForPackage(Package $package, Package $otherPackage)
    {
        $dependencies = $package->getPackageDependencies();
        $otherPackageHandle = $otherPackage->getPackageHandle();

        return isset($dependencies[$otherPackageHandle]) ? $dependencies[$otherPackageHandle] : null;
    }