protected function findGApiOAuthSecretFileValue(InputInterface $input, OutputInterface $output): ?string
    {
        $needToParseConfigFile = false;

        $gApiOAuthSecretFile = $this->getGApiOAuthSecretFileOption($input);
        if ($gApiOAuthSecretFile === null) {
            $needToParseConfigFile = true;
            if ($output->isVerbose()) {
                $output->writeln('The client secret file path is not specified, will try to get the path from a configuration file');
            }
        }


        // If the API file paths are not specified, find and read a configuration file
        if ($needToParseConfigFile) {
            if(!$this->isGApiAuthConfigOptionsFindable($output)){
                return null;
            }

            if ($gApiOAuthSecretFile === null) {

                if ($this->findGApiOAuthSecretFileConfig($output)) {
                    $gApiOAuthSecretFile = $this->findGApiOAuthSecretFileConfig($output);
                } else {
                    $this->writeError($output, 'The client secret file is specified neither in the CLI arguments nor in'
                        . ' the configuration file');
                    return null;
                }
            }

        }

        return $gApiOAuthSecretFile;
    }