private void validateRpcOptionsParams() {
    final Predicate<String> configuredApis =
        apiName ->
            Arrays.stream(RpcApis.values())
                    .anyMatch(builtInApi -> apiName.equals(builtInApi.name()))
                || rpcEndpointServiceImpl.hasNamespace(apiName);
    jsonRpcHttpOptions.validate(logger, commandLine, configuredApis);
  }
Returns a network interface checker that can be used to validate P2P options.

@return A {@link P2PDiscoveryOptions.NetworkInterfaceChecker} that checks if a network
    interface is available.
app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java