private boolean isZip(ByteProvider provider) {
		try {
			Recognizer recog = new PkzipRecognizer();
			byte[] bytes = provider.readBytes(0, recog.numberOfBytesRequired());
			return recog.recognize(bytes) != null;
		}
		catch (Exception e) {
			//ignore
		}
		return false;
	}
Quickly check if the provider is a ZIP file.
@param provider the byte provider
@return TRUE if a valid ZIP file.
Ghidra/Features/FileFormats/src/main/java/ghidra/app/util/opinion/ApkLoader.java