private static void resetNames(ZipOutputStream zos) {
		try {
			Field field = ReflectUtil.getDeclaredField(ZipOutputStream.class, "names");
			Collection<?> names = (Collection<?>) field.get(zos);
			names.clear();
		} catch (Exception ex) {
			logger.error("Failed to reset ZIP name tracking: {}", zos, ex);
		}
	}
Resetting the tracked names allows you to write duplicate entries to a ZIP file.

@param zos
		ZIP stream to reset name tracking of.
recaf-core/src/main/java/software/coley/recaf/util/ZipCreationUtils.java