@Override
	public void removeFunctions(Program program) {
		Set<Function> functionsToRemove = functions.stream()
				.filter(f -> f.getProgram().equals(program))
				.collect(Collectors.toSet());

		removeFunctions(functionsToRemove);
	}
Basic FunctionComparisonModel where a set of functions can be compared with each other
Ghidra/Features/Base/src/main/java/ghidra/features/base/codecompare/model/AnyToAnyFunctionComparisonModel.java