code: public static Compressor createCompressor(File file) throws IllegalArgumentException {
          FileType fileType = FileType.get(file);
  
          if (fileType == FileType.UNKNOWN) {
              throw new IllegalArgumentException("Unknown file extension " + file.getName());
          }
  
          return createCompressor(fileType);
      }
docs: Probes the given {@link File} for its file type and creates a {@link Compressor} based on this file type.
  
  @param file the file to check.
  @return a new Compressor instance
  @throws IllegalArgumentException if the given file is not a known compressed file type