public static <T> T getSwing(Supplier<T> s) {
		AtomicReference<T> ref = new AtomicReference<>();
		runSwing(() -> ref.set(s.get()));
		return ref.get();
	}
Returns the value from the given {@link Supplier}, invoking the call in
the Swing thread. This is useful when you may have values that are being
changed on the Swing thread and you need the test thread to see the
changes.

@param s the supplier
@return the value returned by the supplier
Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java