public void downsample(int version) {
		for (Map.Entry<String, byte[]> entry : new HashSet<>(entrySet())) {
			String key = entry.getKey();
			try {
				ClassNode node = new ClassNode();
				ClassReader reader = new ClassReader(entry.getValue());
				reader.accept(node, 0);
				if (node.version > version) {
					JavaDowngrader.downgrade(node, version);
					ClassWriter writer = new ClassWriter(reader, 0);
					node.accept(writer);
					put(key, writer.toByteArray());
				}
			} catch (Throwable t) {
				logger.error("Failed down sampling '{}' to version {}", key, version, t);
			}
		}
	}
Down sample all classes in the map to the target version.

@param version
		Target version to downsample to.
recaf-core/src/main/java/software/coley/recaf/services/compile/CompileMap.java