void (boolean immediate) { ApplicationManager.getApplication().invokeLater(() -> { final XDebugSession debugSession = XDebuggerManager.getInstance(myProject).getCurrentSession(); if (shouldBeUpdated(debugSession)) { XSuspendContext suspendContext = debugSession.getSuspendContext(); if (suspendContext != null) { if (immediate) { mySingleAlarm.cancelAndRequestImmediate(suspendContext); } else { mySingleAlarm.cancelAndRequest(suspendContext); } } } }, myProject.getDisposed()); }