public static Throwable createThrowableWithStackOlderThan(Class<?>... classes) {
		List<String> patterns =
			Arrays.stream(classes).map(c -> c.getName()).collect(Collectors.toList());

		return createThrowableWithStackOlderThan(patterns, StackElementMatcher.EXACT_CLASS);
	}
Creates a throwable whose stack trace is based upon the current call stack, with any
information coming before, and including, the given classes removed.
<p>
This method can take multiple classes, but you really only need to pass the oldest
class of disinterest.

@param classes the classes to ignore
@return the new throwable
Ghidra/Framework/Utility/src/main/java/utilities/util/reflection/ReflectionUtilities.java