protected void coalesceWilds(Set<String> result) {
		if (result.contains("")) {
			result.removeIf(KeyPath::isName);
			result.add("");
		}
		if (result.contains("[]")) {
			result.removeIf(KeyPath::isIndex);
			result.add("[]");
		}
	}
TODO: We could probably do a lot better, esp. for many patterns, by using a trie.
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/target/path/PathMatcher.java