code: private void checkQualitySize(String id, String sequence, String quality) throws FileFormatException {
          if (sequence.length() != quality.length()) {
              throw new FileFormatException("Quality and Sequence lenghts are different in Fasta " + id);
          }
      }
docs: Check that the sequence and quality strings have the same length
  
  @param id       - FastQ id
  @param sequence - FastQ sequence string
  @param quality  - FastQ quality string
  @throws FileFormatException - If the sequence and quality strings have different lengths