public List<FunctionDefinition> getFunctionDefinitionsOnList(List<Object> list)
			throws CancelledException {

		List<FunctionDefinition> functionDefs = new ArrayList<FunctionDefinition>();
		for (Object item : list) {
			monitor.checkCancelled();
			if (item instanceof FunctionDefinition) {
				functionDefs.add((FunctionDefinition) item);
			}
		}
		return functionDefs;
	}
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