def METHOD_NAME(self, packages: Dict[str, Dict[str, Any]]) -> None:
    implicitly_accepted_count = 0
    for package_id, item in packages.items():
        item["package_id"] = package_id
        try:
            item["licence_content"] = self._package_manager.getPackageLicense(item["package_path"])
        except EnvironmentError as e:
            Logger.error(f"Could not open downloaded package {package_id} to read license file! {type(e)} - {e}")
            continue  # Skip this package.
        if item["licence_content"] is None:
            # Implicitly accept when there is no license
            item["accepted"] = True
            implicitly_accepted_count = implicitly_accepted_count + 1
            self._package_models.append(item)
        else:
            item["accepted"] = None  #: None: no answer yet
            # When presenting the packages, we want to show packages which have a license first.
            # In fact, we don't want to show the others at all because they are implicitly accepted
            self._package_models.insert(0, item)
        CuraApplication.getInstance().processEvents()
    self._page_count = len(self._package_models) - implicitly_accepted_count
    self._license_model.setPageCount(self._page_count)