docs: public DefaultRaftMember update(RaftMember.Type type, Instant time) {
      if (this.type != type) {
        this.type = checkNotNull(type, "type cannot be null");
        if (time.isAfter(updated)) {
          this.updated = checkNotNull(time, "time cannot be null");
        }
        if (typeChangeListeners != null) {
          typeChangeListeners.forEach(l -> l.accept(type));
        }
      }
      return this;
    }