void () { DebuggerInvocationUtil.invokeLater(getProject(), () -> { RemoteConnection connection = myDebugProcess.getConnection(); String connectionStatusMessage = JavaDebuggerBundle.message(connection.isServerMode() ? "status.listening" : "status.connecting", DebuggerUtilsImpl.getConnectionDisplayName(connection)); getContextManager().setState(SESSION_EMPTY_CONTEXT, State.WAITING_ATTACH, Event.START_WAIT_ATTACH, connectionStatusMessage); }); }