private boolean isExternalNamespace(String path) throws CancelledException {

		// try exact namespace path if there is one
		List<Symbol> symbols = NamespaceUtils.getSymbols(path, currentProgram, false);

		// if not, try to find path in another namespace
		if (symbols.isEmpty()) {
			symbols = NamespaceUtils.getSymbols(path, currentProgram, true);
		}

		for (Symbol symbol : symbols) {
			monitor.checkCancelled();
			if (symbol.isExternal() && symbol.getSymbolType().isNamespace()) {
				return true;
			}
		}

		return false;
	}
Method to create a string containing a C++-like representation of the given class
@param recoveredClass the given class
@return string containing a C++-like representation of the given class
@throws CancelledException if cancelled
Ghidra/Features/Decompiler/ghidra_scripts/RecoverClassesFromRTTIScript.java