public boolean isInstalledInInstallationFolder() {
		if (installDir == null) {
			return false; // not installed
		}

		ApplicationLayout layout = Application.getApplicationLayout();

		List<ResourceFile> extDirs = layout.getExtensionInstallationDirs();
		if (extDirs.size() < 2) {
			Msg.trace(this, "Unexpected extension installation dirs; revisit this assumption");
			return false;
		}

		// extDirs.get(0) is the user extension dir
		ResourceFile appExtDir = extDirs.get(1);
		if (FileUtilities.isPathContainedWithin(appExtDir.getFile(false), installDir)) {
			return true;
		}
		return false;
	}
Returns true if this extension is installed under an installation folder or inside of a 
source control repository folder.
@return true if this extension is installed under an installation folder or inside of a 
source control repository folder.
Ghidra/Framework/Generic/src/main/java/ghidra/util/extensions/ExtensionDetails.java