protected function printTable(InputInterface $input, OutputInterface $output, $environment)
    {
        $table   = new Table($output);
        $headers = array('Level', 'Message');

        $table->setHeaders($headers);

        foreach ($environment->getConfig()->ruleSet() as $ruleSet) {
            foreach ($ruleSet->getErrorMessages() as $message) {
                $table->addRow(
                    [
                        $ruleSet->getName(),
                        $message->getMessage(),
                    ]
                );
            }
        }

        $output->writeln('');
        $table->render();
    }