def METHOD_NAME(self, item: Gtk.CheckMenuItem, device: Device, profile: str) -> None:
    if item.get_active():
        pa = PulseAudioUtils()
        c = self.devices[device['Address']]
        def on_result(res: int) -> None:
            if not res:
                self.parent.infobar_update(_("Failed to change profile to %s" % profile))
        pa.set_card_profile(c["index"], profile, on_result)