protected function addFormatter(ServiceContainer $container, $name, $class)
    {
        $container->set(
          'formatter.formatters.' . $name,
          function (ServiceContainer $c) use ($class) {
              $c->set('formatter.presenter', new StringPresenter($c->get('formatter.presenter.differ')));

              /** @var ServiceContainer $c */
              return new $class(
                $c->get('formatter.presenter'),
                $c->get('console.io'),
                $c->get('event_dispatcher.listeners.stats')
              );
          }
        );
    }