protected function overrideBranchAliasConfig(PackageInterface $package, $aliasNormalized, $branch)
    {
        if ($package instanceof Package && false === strpos('dev-', $aliasNormalized)) {
            $extra = $package->getExtra();
            $extra['branch-alias'] = array(
                'dev-'.$branch => $this->rootPackageVersion.'-dev',
            );
            $this->injectExtraConfig($package, $extra);
        }

        return $package;
    }