public static ResourceFile getLanguageDefinitionDirectory(Language lang) throws IOException {
		LanguageDescription langDesc = lang.getLanguageDescription();
		if (!(langDesc instanceof SleighLanguageDescription sld)) {
			throw new IOException("Not a Sleigh Language: " + lang.getLanguageID());
		}
		ResourceFile defsFile = sld.getDefsFile();
		ResourceFile parentFile = defsFile.getParentFile();
		return parentFile;
	}
Returns the base directory of a language definition.

@param lang {@link Language} to get base definition directory
@return base directory for language definition files
@throws IOException if not a sleigh lang
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DWARFUtil.java