protected function resolveInstallPath(array $paths, $name)
    {
        foreach ($paths as $path => $names) {
            if (in_array($name, $names, true) || in_array('type:' . static::TYPE, $names, true)) {
                return $path;
            }
        }

        return false;
    }