public function getDependentPackages($isDevMode)
    {
        $packages = [];
        $rootPackage = $this->composer->getPackage();
        if ($this->isDependentPackage($rootPackage, (bool)$isDevMode)) {
            $packages[] = new PackageWrapper($rootPackage, getcwd());
        }
        $manager = $this->composer->getInstallationManager();
        foreach ($this->composer->getRepositoryManager()->getLocalRepository()->getPackages() as $package) {
            if ($this->isDependentPackage($package, $isDevMode)) {
                $packages[] = new PackageWrapper($package, $manager->getInstallPath($package));
            }
        }
        return $packages;
    }