public static function findFlagStabilityName($level)
    {
        $stability = 'dev';

        /** @var string $stabilityName */
        /** @var int $stabilityLevel */
        foreach (Package::$stabilities as $stabilityName => $stabilityLevel) {
            if ($stabilityLevel === $level) {
                $stability = $stabilityName;

                break;
            }
        }

        return $stability;
    }