def METHOD_NAME(self, manager_menu: ManagerDeviceMenu, device: Device) -> List[DeviceMenuItem]:
    items: List[DeviceMenuItem] = []
    appl = AppletService()
    services = get_services(device)
    connectable_services = [service for service in services if service.connectable]
    for service in connectable_services:
        item: Gtk.MenuItem = create_menuitem(service.name, service.icon)
        if service.description:
            item.props.tooltip_text = service.description
        item.connect("activate", lambda _item: manager_menu.connect_service(service.device, service.uuid))
        items.append(DeviceMenuItem(item, DeviceMenuItem.Group.CONNECT, service.priority))
        item.props.sensitive = service.available
        item.show()
    connected_services = [service for service in services if service.connected_instances]
    for service in connected_services:
        for instance in service.connected_instances:
            surface = self._make_x_icon(service.icon, 16)
            item = create_menuitem(instance.name, surface=surface)
            item.connect(
                "activate",
                lambda _item: manager_menu.disconnect_service(service.device, service.uuid, instance.port)
            )
            items.append(DeviceMenuItem(item, DeviceMenuItem.Group.DISCONNECT, service.priority + 100))
            item.show()
    object_path = device.get_object_path()
    if services:
        config = AutoConnectConfig()
        autoconnect_services = set(config["services"])
        for service in services:
            if service.connected_instances or (object_path, service.uuid) in autoconnect_services:
                item = Gtk.CheckMenuItem(label=service.name)
                config.bind_to_menuitem(item, (object_path, service.uuid))
                item.show()
                items.append(DeviceMenuItem(item, DeviceMenuItem.Group.AUTOCONNECT, service.priority))
    for action, priority in set((action, service.priority)
                                for service in services for action in service.common_actions
                                if any(plugin in appl.QueryPlugins() for plugin in action.plugins)):
        item = create_menuitem(action.title, action.icon)
        items.append(DeviceMenuItem(item, DeviceMenuItem.Group.ACTIONS, priority + 200))
        item.show()
        item.connect("activate", self._get_activation_handler(action.callback))
    return items