private static void setExtensionJarPaths(Map<String, GModule> modules,
			GhidraApplicationLayout layout, List<String> classpathList) {

		if (!Boolean.getBoolean(GhidraClassLoader.ENABLE_RESTRICTED_EXTENSIONS_PROPERTY)) {
			// custom extension class loader is disabled; use normal classpath
			return;
		}

		List<String> extClasspathList = new ArrayList<>();
		addExtensionJarPaths(extClasspathList, modules, layout);

		// Remove the extensions that were added before this method was called
		classpathList.removeAll(extClasspathList);

		String extCp = String.join(File.pathSeparator, extClasspathList);
		System.setProperty(GhidraClassLoader.CP_EXT, extCp);
	}
Initializes the Extension classpath system property, unless disabled.
@param modules the known modules
@param layout the application layout
@param classpathList the standard classpath elements
Ghidra/Framework/Utility/src/main/java/ghidra/GhidraLauncher.java