public function getAnswers(\Composer\Script\Event $event, array $questions, \SplFileInfo $file): array {
    if($event->getIO()->isInteractive()) {
      $answers = $this->getComposerIO()->getAnswers($event->getIO(), $questions);
    }else {
      $answers = $this->getFromArray()->getAnswers($file);
    }
    return $answers;
  }