public static PackageTally fromAnalyzedClassFiles(Collection<ClassFileMetaData> analyzedClassFiles) {
        var definedPkgs = new HashMap<String, PackageInfo>();
        var referencedPkgs = new HashSet<String>();

        for (ClassFileMetaData classData : analyzedClassFiles) {
            var pkgName = classData.packageInfo().name();
            definedPkgs.merge(pkgName, classData.packageInfo(), PackageInfo::hasExportPackageOrElse);
            classData.getReferencedClasses().forEach(className -> referencedPkgs.add(Packages.packageName(className)));
        }
        return new PackageTally(definedPkgs, referencedPkgs);
    }
Represents the classes for two package tallies that are deployed as a single unit.
<p>
ExportPackageAnnotations from this has precedence over the other.
TODO: Add unit test and try using Map.merge (as in the functions below). Can't see how Maps.combine is any different.
bundle-plugin/src/main/java/com/yahoo/container/plugin/classanalysis/PackageTally.java