@Override
  @NotNull
  public Iterator<String> iterator() {
    if (hostnamesAllowlist.size() == 1 && hostnamesAllowlist.get(0).equals("none")) {
      return Collections.emptyIterator();
    } else {
      return hostnamesAllowlist.iterator();
    }
  }
Instantiates a new Json rpc allowlist hosts property.
app/src/main/java/org/hyperledger/besu/cli/custom/JsonRPCAllowlistHostsProperty.java