void (@NotNull DebuggerContextImpl newContext, DebuggerSession.Event event) { if (event == DebuggerSession.Event.ATTACHED) { for (XBreakpoint breakpoint : getXBreakpointManager().getAllBreakpoints()) { if (checkAndNotifyPossiblySlowBreakpoint(breakpoint)) break; } } if (newContext.getDebuggerSession() != myPreviousSession || event == DebuggerSession.Event.DETACHED) { updateBreakpointsUI(); myPreviousSession = newContext.getDebuggerSession(); } }