public static function getFormatter(array $config = []): AbstractFormatter
    {
        if (!empty($config['instance'])) {
            $formatter = $config['instance'];
            unset($config['instance']);
        } else {
            $formatter = JsonFormatter::class;
        }

        return new $formatter($config);
    }