code: ServerMember update(Member.Type type, Instant time) {
      if (this.type != type) {
        this.type = Assert.notNull(type, "type");
        if (time.isAfter(updated)) {
          this.updated = Assert.notNull(time, "time");
        }
        if (typeChangeListeners != null) {
          typeChangeListeners.accept(type);
        }
      }
      return this;
    }
docs: Updates the member type.
  
  @param type The member type.
  @return The member.