private static ClassLoader getClassLoader(String path) {
		ClassLoader classLoader = ClassSearcher.class.getClassLoader();
		if (!IS_USING_RESTRICTED_EXTENSIONS) {
			return classLoader; // custom extension class loader is disabled
		}

		ExtensionDetails extension = ExtensionUtils.getExtension(path);
		if (extension != null) {
			log.trace(() -> "Installing custom extension class loader for: " +
				Json.toStringFlat(extension));
			classLoader = new ExtensionModuleClassLoader(extension);
		}
		return classLoader;
	}
If the given class name matches the known extension name patterns, then this method will try
to load that class using the provided path.   Extensions may be loaded using their own 
class loader, depending on the system property 
{@link GhidraClassLoader#ENABLE_RESTRICTED_EXTENSIONS_PROPERTY}.
<p>
Examples: 
<pre>
/foo/bar/baz/file.jar fully.qualified.ClassName
/foo/bar/baz/bin fully.qualified.ClassName
</pre>

@param path the jar or dir path
@param className the fully qualified class name
@return the class if it is an extension point
Ghidra/Framework/Generic/src/main/java/ghidra/util/classfinder/ClassSearcher.java