def METHOD_NAME(self, package: Package, alt: bool = False) -> None:
    if self.first_package_alt is None:
        self.first_package_alt = package
    if self.first_package is None and not alt:
        self.first_package = package
    self.last_package = package