protected function printBuildTargets($targets, $buildFile, $buildList)
    {
        $output = new ConsoleOutput();
        $table  = new Table($output);
        $table->setHeaders(
            array(
                array(
                    'Target name',
                    'Visibility',
                    'Description',
                ),
            ),
            array(
                new TableCell(
                    $buildList[$buildFile]['name'],
                    array('colspan' => 3)
                )
            )
        );

        foreach ($targets as $file => $target) {
            $hiddenTargets = [
              'deprecated',
            ];
            if (!in_array($buildList[$file]['name'], $hiddenTargets)) {

                // Clean up target list.
                foreach ($target as $key => $value) {
                  if ($value['visibility'] == 'hidden') {
                    unset($target[$key]);
                  }
                }

                if (count($target) > 0) {
                  $table->addRows($target);
                }
            }
        }

        $table->render();

    }