def METHOD_NAME(self, item: "Item") -> "SubmenuItemDict":
    mitem: "SubmenuItemDict" = {
        "text": _("%(service)s on %(device)s") % {"service": item["name"], "device": item["alias"]},
        "markup": True,
        "icon_name": item["mitem"]["icon_name"] if item["mitem"] is not None else item["icon"],
        "sensitive": item["device"] is not None,
        "tooltip": None if item["device"] is None else _("Adapter for this connection is not available"),
        "callback": (item["mitem"]["callback"] if item["mitem"] is not None
                     else cast(Callable[[], None], lambda itm=item: self.on_item_activated(itm)))
    }
    item["mitem"] = mitem
    return mitem