private ProgramLocation getLocationForSymbolRef(Program program, String ref) {
		List<Symbol> symbols = NamespaceUtils.getSymbols(ref, program);
		if (symbols.isEmpty()) {
			return null;
		}

		Symbol symbol = symbols.get(0);
		if (symbol == null) {
			return null;
		}

		SymbolType type = symbol.getSymbolType();
		if (type == SymbolType.FUNCTION) {
			return new FunctionSignatureFieldLocation(program, symbol.getAddress());
		}

		if (type == SymbolType.LABEL) {
			return new LabelFieldLocation(symbol);
		}
		return null;
	}
Method called if the plugin supports this domain file.

@param data the data to be used by the running tool
@return false if data is not a Program object.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/ProgramManagerPlugin.java