private static boolean checkForDuplicateExtensions(ExtensionDetails newExtension,
			Extensions extensions) {

		String name = newExtension.getName();
		log.trace("Checking for duplicate extensions for '" + name + "'");

		List<ExtensionDetails> matches = extensions.getMatchingExtensions(newExtension);
		if (matches.isEmpty()) {
			log.trace("No matching extensions installed");
			return false;
		}

		log.trace("Duplicate extensions found by name '" + name + "'");

		if (matches.size() > 1) {
			reportMultipleDuplicateExtensionsWhenInstalling(newExtension, matches);
			return true;
		}

		ExtensionDetails installedExtension = matches.get(0);
		String message =
			"Attempting to install an extension matching the name of an existing extension.\n" +
				"New extension version: " + newExtension.getVersion() + ".\n" +
				"Installed extension version: " + installedExtension.getVersion() + ".\n\n" +
				"To install, click 'Remove Existing', restart Ghidra, then install again.";
		int choice = OptionDialog.showOptionDialogWithCancelAsDefaultButton(null,
			"Duplicate Extension", message, "Remove Existing");

		String installPath = installedExtension.getInstallPath();
		if (choice != OptionDialog.OPTION_ONE) {
			log.info(removeNewlines(message +
				" Skipping installation. Original extension still installed: " + installPath));
			return true;
		}

		//
		// At this point the user would like to replace the existing extension.  We cannot delete
		// the existing extension, as it may be in use; mark it for removal.
		//
		log.info(removeNewlines(
			message + " Installing new extension. Existing extension will be removed after " +
				"restart: " + installPath));
		installedExtension.markForUninstall();
		return true;
	}
Compares the given extension version to the current Ghidra version.  If they are different,
then the user will be prompted to confirm the installation.   This method will return true
if the versions match or the user has chosen to install anyway.

@param extension the extension
@return true if the versions match or the user has chosen to install anyway
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/extensions/ExtensionInstaller.java