public static byte[] createZip(UncheckedConsumer<ZipOutputStream> consumer) throws IOException {
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		try (ZipOutputStream zos = new ZipOutputStream(baos)) {
			consumer.accept(zos);
		}
		return baos.toByteArray();
	}
@param consumer
		Action to do on the ZIP stream.

@return ZIP bytes.

@throws IOException
		When the action fails.
recaf-core/src/main/java/software/coley/recaf/util/ZipCreationUtils.java