private boolean hasFlowRefInto(Program program, Address addr) {
		ReferenceIterator refs = program.getReferenceManager().getReferencesTo(addr);
		while (refs.hasNext()) {
			Reference ref = refs.next();
			RefType refType = ref.getReferenceType();
			if (refType.isFlow()) {
				return true;
			}
		}
		return false;
	}
Fix the bodies of all functions that called the non-returning function.

@param program containing the functions
@param callLocations that need the bodies of the functions containing them fixed
@param monitor to allow canceling

@return the set of all repaired function entry points

@throws CancelledException
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/CallFixupAnalyzer.java