void (@NotNull DebuggerContextImpl newContext, DebuggerSession.Event event) { if (DebuggerSession.Event.ATTACHED == event || DebuggerSession.Event.RESUME == event) { startLabelsUpdate(); } else if (DebuggerSession.Event.PAUSE == event || DebuggerSession.Event.DETACHED == event || DebuggerSession.Event.DISPOSE == event) { myUpdateLabelsAlarm.cancelAllRequests(); } if (DebuggerSession.Event.DETACHED == event || DebuggerSession.Event.DISPOSE == event) { stateManager.removeListener(this); } }