public static void validateExists(File f) throws IOException {
    if (!f.exists()) {
      throw new IOException(
          String.format("Error: %s doesn't exist, please choose another file\n", f));
    }
  }
@throws IOException if {@code f} does not exists.
java_src/src/main/java/com/google/crypto/tink/subtle/Validators.java