@Override
  public void update(@NotNull final AnActionEvent e) {
    ThumbnailView view = ThumbnailViewActionUtil.getVisibleThumbnailView(e);
    e.getPresentation().setEnabledAndVisible(view != null);
    e.getPresentation().setText(isSelected(e) ? IdeBundle.message("action.text.hide.tags.panel") :
                                IdeBundle.message("action.text.show.tags.panel"));
    super.update(e);
  }
@Override
  public void update(@NotNull final AnActionEvent e)