protected function outputInProgress(string $line): void {
    if ($this->progress) {
      $this->progress->clear();
      $this->getOutput()->writeln($line);
      $this->progress->display();
    }
  }