public static function createFromRawConfig(string $rootPath, string $psr4RootPath) : Composer
    {
        $composerConfigPath = "$rootPath/composer.json";

        if (file_exists($composerConfigPath)) {
            return new Composer(json_decode(file_get_contents($composerConfigPath), true), $rootPath, $psr4RootPath);
        }

        return new Composer([], $rootPath, $psr4RootPath);
    }