public static Path getModule(String pathName) {
		Path path = toPath(pathName);
		while (path != null) {
			if (isModuleDirectory(path)) {
				return path;
			}
			path = path.getParent();
		}
		return null;
	}
Returns the path of the module containing the given path string, if it is parented by a
module root directory.
<p>
For example, given a module path of <code>/some/dir/features/cool_module/</code>, then this
method will return that module path, given these paths:
<br>
<br>
<code>/some/dir/features/cool_module</code><br>
<code>/some/dir/features/cool_module/some/child/dir</code>
<br>
<br>and null for these paths:
<br>
<br>
<code>/some/random/path</code><br>
<code>/some/dir/features/</code>

@param pathName the path name to check
@return the module root directory; null if the path is not in a module
@see #isModuleDirectory(Path)
Ghidra/Framework/Utility/src/main/java/utility/module/ModuleUtilities.java