public List<Function> getFunctionsOnList(List<Object> list) throws CancelledException {

		List<Function> functions = new ArrayList<Function>();
		for (Object item : list) {
			monitor.checkCancelled();
			if (item instanceof Function) {
				functions.add((Function) item);
			}
		}
		return functions;
	}
Method to update the given function definition with the new function definition
@param functionDefinition the given function definition
@param newFunctionDefinition the new function definition
@return the new function definition or null if not changed
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java