code: public static Compressor createCompressor(FileType fileType) throws IllegalArgumentException {
          if (fileType == FileType.UNKNOWN) {
              throw new IllegalArgumentException("Unknown file type");
          }
  
          if (fileType.isCompressed()) {
              return createCompressor(fileType.getCompressionType());
          } else {
              throw new IllegalArgumentException("Unknown compressed file type " + fileType);
          }
      }
docs: Creates a new {@link Compressor} for the given {@link FileType}.
  
  @param fileType the file type to create the compressor for
  @return a new Compressor instance
  @throws IllegalArgumentException if the given file type is not a known compression type