moved staticmethod out from the package installer class