docs: public synchronized void setInstanceStatus(InstanceStatus status) {
          InstanceStatus next = instanceStatusMapper.map(status);
          if (next == null) {
              return;
          }
  
          InstanceStatus prev = instanceInfo.setStatus(next);
          if (prev != null) {
              for (StatusChangeListener listener : listeners.values()) {
                  try {
                      listener.notify(new StatusChangeEvent(prev, next));
                  } catch (Exception e) {
                      logger.warn("failed to notify listener: {}", listener.getId(), e);
                  }
              }
          }
      }