private static GhidraScriptProvider findProvider(String fileName) {
		fileName = fileName.toLowerCase();
		for (GhidraScriptProvider provider : getProviders()) {
			if (fileName.endsWith(provider.getExtension().toLowerCase())) {
				return provider;
			}
		}
		return null;
	}
Find the first provider whose extension matches the given filename extension.

@param fileName name of script file
@return the first matching provider or null if no provider matches
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScriptUtil.java