public static List<Namespace> getNamespacesByName(Program program, Namespace parent,
			String namespaceName) throws IllegalArgumentException {
		validate(program, parent);
		List<Namespace> namespaceList = new ArrayList<>();
		List<Symbol> symbols = program.getSymbolTable().getSymbols(namespaceName, parent);
		for (Symbol symbol : symbols) {
			if (symbol.getSymbolType().isNamespace()) {
				namespaceList.add((Namespace) symbol.getObject());
			}
		}
		return namespaceList;
	}
Returns a list of all namespaces with the given name in the parent namespace

@param program the program to search
@param parent the parent namespace from which to find all namespaces with the given name;
       if null, the global namespace will be used
@param namespaceName the name of the namespaces to retrieve
@return a list of all namespaces that match the given name in the given parent namespace.
An empty list is returned if none found.
@throws IllegalArgumentException if specified parent Namespace is not valid for 
        specified program.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/util/NamespaceUtils.java