code: private boolean isFileType(WatchEvent event, String fileType) {
          return event.context().toString().contains(fileType);
      }
docs: Checks if an event belongs to the desired file type
  
  @param event the event to check
  @return the boolean value corresponding to the output