public static void assertEnabled(JComponent component, boolean enabled) {
		AtomicBoolean ref = new AtomicBoolean();
		runSwing(() -> ref.set(component.isEnabled()));
		Assert.assertEquals("Component not in expected enablement state", enabled, ref.get());
	}
Checks the enablement state of a JComponent in a thread safe way.
@param component the component for which to check the enablement state.
@param enabled the expected enablement state for the component.
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java