private void validateP2PHost(final CommandLine commandLine) {
    final String failMessage = "The provided --p2p-host is invalid: " + p2pHost;
    if (!InetAddresses.isInetAddress(p2pHost)) {
      throw new CommandLine.ParameterException(commandLine, failMessage);
    }
  }
Validates the provided P2P discovery options.

@param commandLine The command line object used for parsing and error reporting.
@param networkInterfaceChecker The checker used to validate the network interface.
app/src/main/java/org/hyperledger/besu/cli/options/P2PDiscoveryOptions.java