private void waitForEnabled(JComponent c, boolean enabled) {

		String state = enabled ? "enable" : "disable";
		waitForCondition(() -> c.isEnabled() == enabled,
			"Timed-out waiting for component to " + state + ": " + c.getClass().getSimpleName());
	}
Adapter for data type merge tests.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/AbstractDataTypeMergeTest.java