private void applyChanges(boolean doWait) throws Exception {

		DockingActionIf applyAction = getApplyAction();
		assertTrue(applyAction.isEnabled());
		Runnable r = () -> applyAction.actionPerformed(new DefaultActionContext());
		if (doWait) {
			runSwing(r);
			dtm.flushEvents();
		}
		else {
			runSwingLater(r);
		}
		waitForSwing();

	}
{@link AbstractEnumEditorUndoRedoTest} contains tests which should be applied to the various 
{@link DataTypeManager} implementations which are responsible for setting {@code dtm} during
the setUp phase.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/AbstractEnumEditorUndoRedoTest.java