@Override
    public final void updateButton(@NotNull AnActionEvent e) {
      e.getPresentation().setEnabled(
        isEnabled() &&
        isContextComponentShowingAndEnabled() &&
        isContextComponentStateAllowingAction() &&
        isEventAllowingAction(e)
      );
    }
@Override
    public final void updateButton(@NotNull AnActionEvent e)