@Override
  public void update(final @NotNull AnActionEvent e) {
    ThreeStateCheckBox.State state = isSelected(e);

    Presentation presentation = e.getPresentation();
    presentation.putClientProperty(STATE_PROPERTY, state);
  }
@Override
  public void update(final @NotNull AnActionEvent e)