@Override
  public void update(@NotNull AnActionEvent e) {
    VcsLogUiProperties properties = e.getData(VcsLogInternalDataKeys.LOG_UI_PROPERTIES);
    boolean isEnabled = properties != null && properties.exists(MainVcsLogUiProperties.GRAPH_OPTIONS);
    e.getPresentation().setEnabled(isEnabled);

    if (isEnabled) {
      Icon icon = getTemplatePresentation().getIcon();
      if (icon != null) {
        if (hasNonDefaultOptions(properties)) {
          e.getPresentation().setIcon(IconManager.getInstance().withIconBadge(icon, JBUI.CurrentTheme.IconBadge.SUCCESS));
        }
        else {
          e.getPresentation().setIcon(icon);
        }
      }
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)