public static function getConfig(PackageEvent $event)
    {
        foreach ($event->getComposer()->getPluginManager()->getPlugins() as $plugin) {
            if ($plugin instanceof FxpAssetPlugin) {
                return $plugin->getConfig();
            }
        }

        throw new \RuntimeException('The fxp composer asset plugin is not found');
    }