docs: private static List<Peer> toPeerList(List<BEValue> peers)
            throws InvalidBEncodingException {
      List<Peer> result = new LinkedList<Peer>();
  
      for (BEValue peer : peers) {
        Map<String, BEValue> peerInfo = peer.getMap();
        result.add(new Peer(
                peerInfo.get("ip").getString(Constants.BYTE_ENCODING),
                peerInfo.get("port").getInt()));
      }
  
      return result;
    }