docs: private RaftRole createRole(RaftServer.Role role) {
      switch (role) {
        case INACTIVE:
          return new InactiveRole(this);
        case PASSIVE:
          return new PassiveRole(this);
        case PROMOTABLE:
          return new PromotableRole(this);
        case FOLLOWER:
          return new FollowerRole(this);
        case CANDIDATE:
          return new CandidateRole(this);
        case LEADER:
          return new LeaderRole(this);
        default:
          throw new AssertionError();
      }
    }