docs: private boolean determineIfEligibleAsLeader(Collection<Integer> partitions, Set<Integer> partitionGroupPeers,
              AbstractTopology topology) {
          if (partitions.contains(Integer.valueOf(0))) {
              return true;
          }
          for (Integer host : topology.getHostIdList(0)) {
              if (partitionGroupPeers.contains(host)) {
                  return true;
              }
          }
          return false;
      }