@Override
	public boolean hasFunctions() {
		if (selection == null || selection.isEmpty()) {
			return getFunctionForLocation() != null;
		}
		// see if selection contains at least one function
		FunctionManager functionManager = program.getFunctionManager();
		FunctionIterator functionIter = functionManager.getFunctions(selection, true);
		return functionIter.hasNext();
	}
Returns the code unit containing the action's program location or null
@return the code unit containing the action's program location or null
Ghidra/Features/Base/src/main/java/ghidra/app/context/ProgramLocationActionContext.java