private StackTraceElement[] filterTrace(StackTraceElement[] trace) {
		if (threadName.contains("AWT-EventQueue")) {

			StackTraceElement[] filtered =
				ReflectionUtilities.filterStackTrace(trace, SWING_STACK_ELEMENT_PATTERNS);
			return filtered;
		}
		StackTraceElement[] filtered =
			ReflectionUtilities.filterStackTrace(trace, GENERAL_USELESS_STACK_ELEMET_PATTERNS);
		return filtered;
	}
Creates a new {@link TestReportingException} using an exception that was generated on 
the Swing thread.

@param message an optional custom message that will be printed first in the stack trace
@param t the original exception
@return the new {@link TestReportingException}
Ghidra/Framework/Generic/src/main/java/generic/test/TestReportingException.java