public static void output(@NotNull Element element, @NonNls @NotNull Writer writer, String lineSeparator) throws IOException {
    writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    writer.write(lineSeparator);
    createOutputter(lineSeparator).output(element, writer);
    writer.write(lineSeparator);
  }
public static void output(@NotNull Element element, @NonNls @NotNull Writer writer, String lineSeparator)