protected function getComposerLockData(): Collection
    {
        $json = [];

        if ($this->files->exists($this->config['path.composer'])) {
            $json = \json_decode($this->files->get($this->config['path.composer']), true);
        }

        return Collection::make($json['packages'] ?? []);
    }