code: private function resolveChDir(InputInterface $input, OutputInterface $output)
      {
          $configurationLocator = new ConfigurationLocator();
  
          try {
              $configurationLocator->locate('.');
              return null;
          } catch (\RuntimeException $e) {
              $output->writeln($e->getMessage());
              $frameworkConfigurationQuestion = $this->createFrameworkConfigurationQuestion($configurationLocator);
              $chDir = $this->getQuestionHelper()->ask($input, $output, $frameworkConfigurationQuestion);
  
              if (!$chDir) {
                  throw new RuntimeException('Could not create "humbug.json.dist". Cannot locate phpunit.xml(.dist) file.');
              }
  
              return $chDir;
          }
      }
docs: @param InputInterface $input
  @param OutputInterface $output
  @return string|null
  
  @throws \RuntimeException