public static void output(@NotNull Element element, @NotNull File file, @NotNull Project project) throws IOException {
    try (Writer writer = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {
      output(element, writer, project);
    }
  }
public static void output(@NotNull Element element, @NotNull File file, @NotNull Project project)