protected function determineFile(OutputInterface $output, $givenFileName)
    {
        if (is_file($givenFileName)) {
            return new \SplFileInfo($givenFileName);
        }

        return $this->chooseFileInDirectory(
            $output,
            $this->chooseBundle($output)->getPath().'/Resources/config/'
        );
    }