code: public void setPreferredFormats(List<String> preferredFormats) {
  		if (preferredFormats.isEmpty()) {
  			throw new IllegalArgumentException("Preferred formats list must not be empty");
  		}
  		this.preferredFormats = new ArrayList<>(preferredFormats);
  	}
docs: Set preferred video formats for this driver. First formats from the list are better and will
  be selected if available.