code: @Beta
    public void writeLines(Stream<? extends CharSequence> lines, String lineSeparator)
        throws IOException {
      writeLines(lines.iterator(), lineSeparator);
    }
docs: Writes the given lines of text to this sink with each line (including the last) terminated with
  the given line separator.
  
  @throws IOException if an I/O error occurs while writing to this sink
  @since 22.0