code: protected function getChoiceQuestion($questionName, $defaultValue = null, array $choices = array())
      {
          $questionName = $defaultValue
              ? '<info>' . $questionName . '</info> [<comment>' . $defaultValue . '</comment>]: '
              : '<info>' . $questionName . '</info>: ';
  
          return new ChoiceQuestion($questionName, $choices, $defaultValue);
      }
docs: Instantiates and returns a question.
  
  @param string $questionName
  @param string $defaultValue
  @param array $choices
  
  @return \Symfony\Component\Console\Question\Question