@Override
    public void beforeActionPerformed(@NotNull AnAction action, @NotNull AnActionEvent event) {
      Editor editor = event.getData(CommonDataKeys.HOST_EDITOR);
      EditorLastActionTracker tracker = editor == null ? getTrackerIfCreated() : getInstance();
      if (tracker == null) {
        return;
      }

      tracker.myCurrentEditor = editor;
      if (tracker.myCurrentEditor != tracker.myLastEditor) {
        tracker.doResetLastAction();
      }
    }
@Override
    public void beforeActionPerformed(@NotNull AnAction action, @NotNull AnActionEvent event)