def METHOD_NAME(self, utils: PulseAudioUtils, event: int, idx: int) -> None:
    logging.debug(f"{event} {idx}")
    def get_card_cb(card: "CardInfo") -> None:
        drivers = ("module-bluetooth-device.c",
                   "module-bluez4-device.c",
                   "module-bluez5-device.c")
        if card["driver"] in drivers:
            self.devices[card["proplist"]["device.string"]] = card
            self.regenerate_with_device(card["proplist"]["device.string"])
    if event & EventType.CARD:
        logging.info("card")
        if event & EventType.CHANGE:
            logging.info("change")
            utils.get_card(idx, get_card_cb)
        elif event & EventType.REMOVE:
            logging.info("remove")
        else:
            logging.info("add")
            utils.get_card(idx, get_card_cb)