void doRemoveRight(int count, Set<PathPattern> result) {
		KeyPath parent = pattern.parent(count);
		if (parent == null) {
			return;
		}
		result.add(new PathPattern(parent));
	}
If the given path matches, extract keys where matched by wildcards

<p>
This is essentially the inverse of {@link #applyKeys(String...)}, but can only be asked of
one pattern. The keys are returned from left to right, in the order matched by the pattern.
Only those keys matched by a wildcard are included in the result. Indices are extracted with
the brackets {@code []} removed.

@param path the path to match
@param matchLength true if the path must have the same number of keys as this pattern, or
           false if the path is allowed to have more keys than this pattern
@return the list of matched keys or {@code null} if not matched
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/target/path/PathPattern.java