private static boolean isAnyDuplicate(final String... values) {
    final Set<String> set = new HashSet<>();
    for (final String value : values) {
      if (!set.add(value)) {
        return true;
      }
    }
    return false;
  }
Write the content of the genesis to the output file.

@param directory The directory to write the file to.
@param fileName The name of the output file.
@param genesis The genesis content.
@throws IOException If the genesis file cannot be written or accessed.
app/src/main/java/org/hyperledger/besu/cli/subcommands/operator/GenerateBlockchainConfig.java