private static boolean isGhidraExtension(GhidraApplicationLayout ghidraLayout, IPath path) {
		if (ghidraLayout != null) {
			for (ResourceFile extensionDir : ghidraLayout.getExtensionInstallationDirs()) {
				if (new Path(extensionDir.getAbsolutePath()).isPrefixOf(path)) {
					return true;
				}
			}
		}
		return false;
	}
Checks to see if the given path is a Ghidra extension.

@param ghidraLayout A Ghidra layout that contains extension locations to check against.
@param path The path to check.
@return True if the given path is a Ghidra extension installed in the given Ghidra layout.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/utils/GhidraProjectUtils.java