public static String createStackTraceForAllThreads() {
		Map<Thread, StackTraceElement[]> allStackTraces = Thread.getAllStackTraces();
		Set<Entry<Thread, StackTraceElement[]>> entrySet = allStackTraces.entrySet();
		StringBuilder builder = new StringBuilder();
		for (Entry<Thread, StackTraceElement[]> entry : entrySet) {
			builder.append("Thread: " + entry.getKey().getName()).append('\n');
			StackTraceElement[] value = entry.getValue();
			for (StackTraceElement stackTraceElement : value) {
				builder.append('\t').append("at ").append(stackTraceElement).append('\n');
			}
		}

		return builder.toString();
	}
Returns a string which is a printout of a stack trace for each thread running in the
current JVM
@return the stack trace string
Ghidra/Framework/Utility/src/main/java/utilities/util/reflection/ReflectionUtilities.java