private Set<LanguageDescription> getSupportedLanguages(FidDB fidDB) {

		Set<LanguageDescription> languages = new TreeSet<>(new ProcessorSizeComparator());
		LanguageService languageService = DefaultLanguageService.getLanguageService();

		List<LibraryRecord> allLibraries = fidDB.getAllLibraries();
		for (LibraryRecord libraryRecord : allLibraries) {
			LanguageID ghidraLanguageID = libraryRecord.getGhidraLanguageID();
			try {
				LanguageDescription languageDescription =
					languageService.getLanguageDescription(ghidraLanguageID);
				languages.add(languageDescription);
			}
			catch (LanguageNotFoundException e) {
				// ignore language
			}
		}
		return languages;
	}
Tests if the Fid database for this FidFile supports the given language.
@param language the language to test.
@return true if this Fid Database supports the given language.
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FidFile.java