protected function getFlowPackageType($composerPackageType)
    {
        foreach ($this->allowedPackageTypePrefixes as $allowedPackagePrefix) {
            $packagePrefixPosition = strpos($composerPackageType, $allowedPackagePrefix);
            if ($packagePrefixPosition === 0) {
                return substr($composerPackageType, strlen($allowedPackagePrefix));
            }
        }

        return false;
    }