public static void writeString(Path file, String data) throws IOException {
    Files.createDirectories(file.getParent());
    Files.writeString(file, data);
  }
public static void writeString(Path file, String data)