private static Namespace adjustForNullRootNamespace(Namespace parentNamespace,
			String namespacePath, Program program) {
		Namespace globalNamespace = program.getGlobalNamespace();
		if (namespacePath != null && namespacePath.startsWith(globalNamespace.getName())) {
			return globalNamespace;
		}

		if (parentNamespace != null) {
			return parentNamespace;
		}

		return globalNamespace;
	}
Finds the namespace for the given symbol path <b>that is not a function</b>

@param program the program from which to get the namespace
@param symbolPath the path of namespace names including the name of the desired namespace
@return the namespace represented by the given path, or null if no such namespace exists or
        the namespace is a function
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/util/NamespaceUtils.java