void (final XDebugSession debugSession) { WriteAction.runAndWait(() -> { XDebugSessionImpl session = (XDebugSessionImpl)debugSession; Disposer.dispose(session.getSessionTab()); Disposer.dispose(session.getConsoleView()); }); }