public static @NlsContexts.Label String getConnectionWaitStatus(@NotNull RemoteConnection connection) {
    String connectionName = ObjectUtils.doIfNotNull(connection, DebuggerUtilsImpl::getConnectionDisplayName);
    return connection instanceof RemoteConnectionStub
           ? JavaDebuggerBundle.message("status.waiting.attach")
           : connection.isServerMode()
             ? JavaDebuggerBundle.message("status.listening", connectionName)
             : JavaDebuggerBundle.message("status.connecting", connectionName);
  }
public static @NlsContexts.Label String getConnectionWaitStatus(@NotNull RemoteConnection connection)