public void update() {
    if (!myUpdateThreadOnDirectUpdateChecked) {
      myUpdateThreadOnDirectUpdateChecked = true;
      if (myAction.getActionUpdateThread() == ActionUpdateThread.BGT &&
          !ActionClassMetaData.isDefaultUpdate(myAction)) {
        ActionManager actionManager = ActionManager.getInstance();
        LOG.error(PluginException.createByClass(
          "BGT operation " + Utils.operationName(
            myAction, "update", myPlace, o -> o instanceof AnAction a ? actionManager.getId(a) : null) +
          " is not allowed on EDT", null, myAction.getClass()));
      }
    }
    AnActionEvent e = AnActionEvent.createFromInputEvent(null, myPlace, myPresentation, getDataContext(), false, true);
    ActionUtil.performDumbAwareUpdate(myAction, e, false);
    updateToolTipText();
    updateIcon();
  }
public void update()