void (@NotNull final RemoteDebugger debugger) { debugger.addCloseListener(new RemoteDebuggerCloseListener() { @Override public void closed() { notifyThreadsClosed(debugger); } @Override public void communicationError() { notifyThreadsClosed(debugger); } @Override public void detached() { notifyThreadsClosed(debugger); } }); }