private function chooseTarget(Project $project, OutputInterface $output)
 {
     $output->writeln('Project has multiple target definitions. Do you want to choose one?');
     $targets = ["" => "Skip this for now, decide later"] + array_map(function ($value) {
         if (null === $value) {
             return 'run from <comment>localhost</comment>';
         }
         return sprintf('run via ssh from <comment>%s</comment>', $value);
     }, $project->getTargets()->getArrayCopy());
     $value = $this->getDialogHelper()->select($output, "Available options: ", $targets, "");
     if ($value) {
         $project->setCurrentTarget($value);
     }
 }