private void addMatchesTwoPrograms(List<LocalBSimMatch> localMatches) {
		Map<Function, Integer> matchCounts = new HashMap<>();
		for (LocalBSimMatch match : localMatches) {
			int count = matchCounts.getOrDefault(match.getSourceFunc(), 0);
			if (count >= MATCHES_PER_FUNCTION) {
				continue;
			}
			tableDialog.add(match);
			matchCounts.put(match.getSourceFunc(), count + 1);
		}
	}
Iterate through the list of sorted matches, adding the top MATCHES_PER_FUNCTION elements
to the table for each source function.
@param localMatches matches in decreasing order of confidence
Ghidra/Features/BSim/ghidra_scripts/LocalBSimQueryScript.java