docs: private void handleClusterMembershipEvent(ClusterMembershipEvent event) {
      if (event.type() == ClusterMembershipEvent.Type.MEMBER_ADDED || event.type() == ClusterMembershipEvent.Type.MEMBER_REMOVED) {
        recomputeTerm(groupMembershipService.getMembership(partitionId.group()));
      }
    }