private Set<Function> getCalledFunctions(Function callingFunction) throws CancelledException {

		Set<Function> calledFunctions = new HashSet<Function>();

		InstructionIterator instructions = callingFunction.getProgram()
				.getListing()
				.getInstructions(callingFunction.getBody(), true);
		while (instructions.hasNext()) {
			monitor.checkCancelled();
			Instruction instruction = instructions.next();
			if (instruction.getFlowType().isCall()) {

				Function calledFunction =
					extendedFlatAPI.getReferencedFunction(instruction.getMinAddress(), true);
				if (calledFunction == null) {
					continue;
				}

				calledFunctions.add(calledFunction);
			}
		}

		return calledFunctions;
	}
Method to determine if the given function calls a known denstructor or inlined destructor 
@param Set of called functions
@return true if function calls a known constructor or inlined constructor, false otherwise
of its own or none
@throws CancelledException if cancelled
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java