def METHOD_NAME(self, device: Device, item: Gtk.MenuItem) -> None:
    info = self.devices[device['Address']]
    group: Sequence[Gtk.RadioMenuItem] = []
    sub = Gtk.Menu()
    if info:
        for profile in info["profiles"]:
            i = Gtk.RadioMenuItem.new_with_label(group, profile["description"])
            group = i.get_group()
            if profile["name"] == info["active_profile"]:
                i.set_active(True)
            i.connect("toggled", self.on_selection_changed,
                      device, profile["name"])
            sub.append(i)
            i.show()
        item.set_submenu(sub)
        item.show()