public static void writeToFile(@NotNull File file, @NotNull String text, boolean append) throws IOException {
    writeToFile(file, text.getBytes(StandardCharsets.UTF_8), append);
  }
public static void writeToFile(@NotNull File file, @NotNull String text, boolean append)