private static @NotNull AnActionEvent fakeEvent(@NotNull ToggleAction action) {
    return new AnActionEvent(
      null, DataContext.EMPTY_CONTEXT, "",
      action.getTemplatePresentation().clone(), ActionManager.getInstance(), 0
    );
  }
private static @NotNull AnActionEvent fakeEvent(@NotNull ToggleAction action)