code: public static void writeRecords(final List<VcfSample> samples,
                                      final List<VcfRecord> records,
                                      final PrintWriter writer) {
          checkNotNull(samples);
          checkNotNull(records);
          checkNotNull(writer);
  
          for (VcfRecord record : records) {
              writeRecord(samples, record, writer);
          }
      }
docs: Write VCF records with the specified print writer.
  
  @param samples zero or more VCF samples, must not be null
  @param records zero or more VCF records, must not be null
  @param writer print writer to write VCF with, must not be null