public static boolean isAWTThreadPresent() {
		Thread currentThread = Thread.currentThread();
		ThreadGroup threadGroup = currentThread.getThreadGroup();
		while (threadGroup.getParent() != null) {
			threadGroup = threadGroup.getParent();
		}
		return recurseOn(threadGroup, 0);
	}
How many times larger should the arrays be to accommodate growing numbers
of threads or thread groups?
Ghidra/Features/GhidraServer/src/test.slow/java/ghidra/server/remote/ThreadUtils.java