public static List<Symbol> getSymbols(String symbolPath, Program program,
			boolean searchWithinAllLibraries) {

		List<String> namespaceNames = new SymbolPath(symbolPath).asList();
		if (namespaceNames.isEmpty()) {
			return Collections.emptyList();
		}

		String symbolName = namespaceNames.remove(namespaceNames.size() - 1);
		List<Namespace> parents =
			doGetNamespaces(namespaceNames, program.getGlobalNamespace(), program,
				searchWithinAllLibraries);
		return searchForAllSymbolsInAnyOfTheseNamespaces(parents, symbolName, program);
	}
Returns a list of all symbols that match the given path. The path consists of a series
of namespaces names separated by "::" followed by a label or function name.

@param symbolPath the names of namespaces and symbol separated by "::".
@param program the program to search
@param searchWithinAllLibraries if true all libraries will be searched provided first element 
of symbolPath is not a library name, else search symbolPath within global namespace only.
@return the list of symbols that match the given symbolPath.  An empty list is returned
if none found.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/util/NamespaceUtils.java