public static void writeToFile(@NotNull File file, @NotNull String text) throws IOException {
    writeToFile(file, text, false);
  }
public static void writeToFile(@NotNull File file, @NotNull String text)