public static function apply($text, $foreground = '', $background = '')
    {
        try {
            $style = new OutputFormatterStyle();
            if ($foreground != '') {
                $style->setForeground($foreground);
            }
            if ($background != '') {
                $style->setBackground($background);
            }
            return $style->apply($text);
        } catch (\Exception $e) {
            return $text;
        }
    }