private Symbol getSymbolForText(String text) throws NotFoundException {

		SymbolTable symbolTable = program.getSymbolTable();

		SymbolPath symbolPath = new SymbolPath(text);
		Namespace namespace = getNamespace(symbolPath);

		Iterator<Symbol> symbolIterator;
		if (namespace == null) {
			symbolIterator = symbolTable.getSymbols(text);
		}
		else {
			symbolIterator = symbolTable.getSymbols(symbolPath.getName(), namespace).iterator();
		}
		Symbol symbol = null;
		try {
			symbol = findRefSymbol(symbolIterator);
			if (symbol == null) {
				return null; // multiple symbols found
			}
		}
		catch (NotFoundException e) {
			// ignore
		}

		Symbol candidateSymbol2 = null;
		if (namespace == null) {
			// look for original external symbols not indexed by symbol table
			try {
				candidateSymbol2 = findOriginalExternalSymbol(text);
				if (candidateSymbol2 == null) {
					return null; // multiple symbols found
				}
				if (symbol != null) {
					return null;
				}
				symbol = candidateSymbol2;
			}
			catch (NotFoundException e) {
				// ignore
			}
		}

		if (symbol == null) {
			throw new NotFoundException();
		}

		return symbol;
	}
Get the code/function symbol which corresponds to the specified 
text entry which may optionally include a namespace
@param text symbol name
@return symbol or null if multiple symbols found
@throws NotFoundException if no matching symbols were found
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/ThunkReferenceAddressDialog.java