protected void updateTextAndIcon(Content content, boolean isSelected, boolean isBold) {
    if (content == null) {
      setText(null);
      setIcon(null);
      myTabColor = null;
    }
    else {
      setText(content.getDisplayName());
      setActiveFg(getActiveFg(isSelected));
      setPassiveFg(getPassiveFg(isSelected));
      myTabColor = content.getTabColor();

      setToolTipText(content.getDescription());

      final boolean show = Boolean.TRUE.equals(content.getUserData(ToolWindow.SHOW_CONTENT_ICON));
      if (show) {
        ComponentOrientation componentOrientation = content.getUserData(Content.TAB_LABEL_ORIENTATION_KEY);
        if(componentOrientation != null) {
          setComponentOrientation(componentOrientation);
        }
        Icon icon = OffsetIcon.getOriginalIcon(content.getIcon());
        if (isSelected) {
          setIcon(icon);
        }
        else {
          var userValueIsTransparent = content.getUserData(ToolWindowContentUi.NOT_SELECTED_TAB_ICON_TRANSPARENT);
          var isTransparent = userValueIsTransparent != null ? userValueIsTransparent : true;

          var labelIcon = icon != null ? (isTransparent ? new WatermarkIcon(icon, .5f) : icon) : null;
          setIcon(labelIcon);
        }
      }
      else {
        setIcon(null);
      }

      myBold = isBold;
    }
  }
protected void updateTextAndIcon(Content content, boolean isSelected, boolean isBold)