@Override
	public Set<PathPattern> getPatterns() {
		return patterns;
	}
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