public function main(string $modules = '')
    {
        $this->info('Checking modules configuration');
        $this->hr();

        $this->modules = Utility::getModules();
        $this->skipWarnings = (bool)$this->param('no-warnings');

        if (empty($this->modules)) {
            $this->warn('Did not find any modules');
            exit();
        }

        $modules = '' === $modules ? $this->modules : explode(',', $modules);
        $errorsCount = $this->validateModules($modules);
        if ($errorsCount > 0) {
            $this->abort("Errors found: $errorsCount.  Validation failed!");
        }
        $this->success('No errors found. Validation passed!');
    }