private function findComposerDirectory($vendor, $file = '')
    {
        $composerDirectory = $this->normalizePath($vendor . '/composer/' . $file);

        if ($this->files->exists($composerDirectory)) {
            return $composerDirectory;
        }

        return false;
    }