void (@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; } }