def METHOD_NAME(self):
    if self._machine_state not in (STATE_INITIALIZING, STATE_RUNNING):
        state = 'disconnected'
    else:
        state = 'enabled' if self._is_running else 'disabled'
    icon = self._state_icons[state]
    if not self._enabled:
        return
    machine_state = _('{machine} is {state}').format(
        machine=_(self._machine),
        state=_(self._machine_state),
    )
    if self._is_running:
        # i18n: Tray icon tooltip.
        output_state = _('output is enabled')
    else:
        # i18n: Tray icon tooltip.
        output_state = _('output is disabled')
    self._trayicon.setIcon(icon)
    self._trayicon.setToolTip(
        # i18n: Tray icon tooltip.
        'Plover:\n- %s\n- %s' % (output_state, machine_state)
    )