public Function getFunctionOnBothLists(List<Function> list1, List<Function> list2) {

		List<Function> commonFunctions = getFunctionsOnBothLists(list1, list2);

		if (commonFunctions.size() == 1) {
			return commonFunctions.get(0);
		}
		// if none or more than one return null
		return null;
	}
Method to retrieve a single common function on both lists
@param list1 first list of functions
@param list2 second list of functions
@return single function if there is one function on both lists, null if there are none or
more than one
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java