public List<Function> getFunctionsOnBothLists(List<Function> list1, List<Function> list2) {
		List<Function> commonFunctions =
			list1.stream().distinct().filter(list2::contains).collect(Collectors.toList());

		return commonFunctions;
	}
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