protected function getDataFromConfigFile(OutputInterface $output): ?array
    {

        if ($this->findConfigFile($output) === null) {
            if ($output->isVerbose()) {
                $output->writeln('A configuration file `'.$this->getCommandStaticConfigFilename().'`'
                    . ' exists neither in the current directory nor in any parent directory');
            }
            return null;
        }


        if ($output->isVerbose()) {
            $output->writeln('Reading options from the `' . $this->findConfigFile($output) . '` configuration file');
        }

        try {
            $configData = Yaml\Yaml::parseFile($this->findConfigFile($output));
        } catch (Yaml\Exception\ParseException $exception) {
            throw new \RuntimeException('Couldn\'t parse the configuration file: '.$exception->getMessage());
        }

        return $configData;
    }