@Nullable
	public static String getExtensionFromFileInfo(@Nullable FileInfo file) {
		return switch (file) {
			case ApkFileInfo _ -> "apk";
			case ArscFileInfo _ -> "arsc";
			case BinaryXmlFileInfo _ -> "xml";
			case DexFileInfo _ -> "dex";
			case JarFileInfo _ -> "jar";
			case JModFileInfo _ -> "jmod";
			case WarFileInfo _ -> "war";
			case ZipFileInfo _ -> "zip";
			case null, default -> null;
		};
	}
Get the file extension from specific subtypes of {@link FileInfo}.

@param file
		File to get extension of.

@return Extension associated with files of the given type, or {@code null} if no specific extension is known.
recaf-core/src/main/java/software/coley/recaf/util/IOUtil.java