private Address getFunctionAddress(ProgramLocation loc) {

		if (loc instanceof FunctionLocation) {
			FunctionLocation functionLocation = (FunctionLocation) loc;
			Address functionAddress = functionLocation.getFunctionAddress();
			return functionAddress;
		}

		return null;
	}
Retrieves the address of the function associated with the given program location.

@param loc the program location
@return the entry point of the function, or null if not valid
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/tags/EditFunctionTagsAction.java