@Override
  protected void update(final AnActionEvent e, final ViewContext context, final Content[] content) {
    setEnabled(e, isEnabled(content));
    boolean unpinAction = isUnpinAction(e, content);
    Presentation presentation = e.getPresentation();
    if (unpinAction) {
      String text = RegistryManager.getInstance().is("ide.editor.tabs.interactive.pin.button") ?
                    TextWithMnemonic.parse(IdeBundle.message("action.unpin.tab")).dropMnemonic(true).getText() :
                    "";
      presentation.setText(text);
    }
    presentation.setIcon(unpinAction ? AllIcons.Actions.PinTab : AllIcons.Actions.Close);
    presentation.setHoveredIcon(unpinAction ? AllIcons.Actions.PinTab : AllIcons.Actions.CloseHovered);
  }
@Override
  protected void update(final AnActionEvent e, final ViewContext context, final Content[] content)