@Override
    public void editorReleased(@NotNull EditorFactoryEvent event) {
      EditorLastActionTracker tracker = getInstance();
      EditorImpl killedEditor = (EditorImpl)event.getEditor();
      if (tracker.myCurrentEditor == killedEditor) {
        tracker.myCurrentEditor = null;
      }
      if (tracker.myLastEditor == killedEditor) {
        tracker.myLastEditor = null;
      }
    }
@Override
    public void editorReleased(@NotNull EditorFactoryEvent event)