void (@NotNull ProcessEvent event) { if (myConnection != null) { myConnection.disconnect(); } myProcessHandler.removeProcessListener(this); XDebugSession attachedSession = myAttachedSession.getAndSet(null); if (attachedSession != null) { attachedSession.stop(); } }