private long countP2PNetworkNonBootnodeConnections() {
    return p2pNetwork.getPeers().stream().filter(this::isNotABootnode).count();
  }
Creates the provider observing the provided p2p network

@param p2pNetwork the p2p network to observe
@param bootnodeEnodes the bootnodes that this node is configured to connect to
ethereum/permissioning/src/main/java/org/hyperledger/besu/ethereum/permissioning/node/InsufficientPeersPermissioningProvider.java