public static void updateState() {
    resetActionIcon();

    ourNewUiIcon = calculateOurNewUiIcon();

    loop:
    for (ActionProvider provider : ActionProvider.EP_NAME.getExtensionList()) {
      try {
        for (UpdateAction action : provider.getUpdateActions(DataContext.EMPTY_CONTEXT)) {
          if (action.isNewAction()) {
            if (action.isIdeUpdate()) {
              ourShowPlatformUpdateIcon = true;
            }
            else {
              ourShowPluginsUpdateIcon = true;
            }
            if (ourShowPlatformUpdateIcon && ourShowPluginsUpdateIcon) {
              break loop;
            }
          }
        }
      }
      catch (Exception e) {
        LOG.error(e);
      }
    }

    if (isAvailableInStatusBar()) {
      updateWidgets();
    }
  }
public static void updateState()