protected function formatMessage($message, $format = [Console::FG_RED, Console::BOLD]) {
        $stream = (PHP_SAPI === 'cli') ? \STDERR : \STDOUT;

        if (Console::stream_supports_ansi_colors($stream)) {
            $message = Console::ansi_format($message, $format);
        }

        return $message;
    }