public static boolean isEventDispatchThread() {
		return Swing.isSwingThread();
	}
Returns true if this is the event dispatch thread. Note that this method returns true in
headless mode because any thread in headless mode can dispatch its own events. In swing
environments, the swing thread is usually used to dispatch events.

@return  true if this is the event dispatch thread -OR- is in headless mode.
Ghidra/Framework/Utility/src/main/java/ghidra/util/SystemUtilities.java