protected function getPackageDetailsFromGivenComposerLockFileEnhanced($fileIn, $inParametersArray = [])
    {
        if (!file_exists($fileIn)) {
            return ['error' => $fileIn . ' was not found'];
        }
        $alnfo    = [];
        $packages = $this->getPkgFileInListOfPackageArrayOut($fileIn);
        $pkgType  = $this->decisionPackageOrPackageDev($inParametersArray);
        foreach ($packages[$pkgType] as $key => $value) {
            $keyToUse = $value['name'];
            if (array_key_exists('Not Grouped By Name', $inParametersArray)) {
                $keyToUse = $key;
            }
            $alnfo[$keyToUse] = $this->mergePackageAttributes($value, $inParametersArray);
            ksort($alnfo[$keyToUse]);
        }
        ksort($alnfo);
        return $alnfo;
    }