public static ExtensionDetails getExtension(String path) {

		File pathDir = new File(path);
		Set<ExtensionDetails> installedExtensions = getActiveInstalledExtensions();
		for (ExtensionDetails ext : installedExtensions) {
			File installDir = ext.getInstallDir();
			if (FileUtilities.isPathContainedWithin(installDir, pathDir)) {
				return ext;
			}
		}

		return null;
	}
Performs extension maintenance.  This should be called at startup, before any plugins or
extension points are loaded.
Ghidra/Framework/Generic/src/main/java/ghidra/util/extensions/ExtensionUtils.java