def run(self, menu=None, action=None, replaceMenu=None):
        if not Constant.ready():
            if not replaceMenu:
                if self.ready_retry > 2:
                    sublime.message_dialog(
                        "Javatar is starting up... " +
                        "Please wait a few seconds and try again."
                    )
                else:
                    sublime.status_message(
                        "Javatar is starting up... " +
                        "Please wait a few seconds and try again..."
                    )
                self.ready_retry += 1
            return
        if self.qm is None:
            self.qm = QuickMenu(self.main_menu)
        if replaceMenu is not None:
            self._main_menu[replaceMenu["name"]] = replaceMenu["menu"]
            return
        else:
            PluginManager().on_presetup_menu()
            for key, menu in self.main_menu.items():
                self.qm.setMenu(key, menu)
        self.qm.show(self.window, self.select, menu, action)
Show menu to user, if ready
dataset/ETHPy150Open spywhere/Javatar/commands/menu.py/JavatarCommand.run