boolean checkOffcutFuncRef(Program program, Address addr) {
		Instruction instr = program.getListing().getInstructionContaining(addr);
		// no instruction, not offcut
		if (instr == null) {
			return false;
		}
		// in the middle of an instruction, offcut
		if (!instr.getMinAddress().equals(addr)) {
			return true;
		}
		// in the middle of a function body, offcut
		Function func = program.getFunctionManager().getFunctionContaining(addr);
		if (func != null) {
			if (!func.getEntryPoint().equals(addr)) {
				return true;
			}
		}
		return false;
	}
Check if an address that is a possible reference falls within a
   defined function, pointing at a symbol

@param program
@param addr
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/ScalarOperandAnalyzer.java