code: private Event getNextEvent(Iterator<File> files) {
          while (files.hasNext()) {
              File file = files.next();
  
              // only consider files that end with FILE_SUFFIX
              if (!file.getAbsolutePath().endsWith(FILE_SUFFIX)) {
                  continue;
              }
  
              Event event = fileToEvent(file);
              if (event != null) {
                  return event;
              }
          }
  
          return null;
      }
docs: Returns the next *valid* {@link Event} found in an Iterator of Files.
  
  @param files Iterator of Files to deserialize
  @return The next Event found, or null if there are none