protected void checkAction(Set<DockingActionIf> actions, String name, boolean isEnabled,
			String caseName) {
		for (DockingActionIf element : actions) {
			String actionName = element.getName();
			int pos = actionName.indexOf(" (");
			if (pos > 0) {
				actionName = actionName.substring(0, pos);
			}
			if (actionName.equals(name)) {
				checkAction(element, isEnabled, caseName);
				return;
			}
		}
		Assert.fail("Action " + name + " not found");
	}
Execute the specified DataPlugin action using the current program context.
Assertion failures will occur if action not found or is not enabled for the
current context.
@param name action name
@param waitForCompletion if true invocation will wait for action to complete
its execution in the swing thread, if false it will be scheduled and return immediately.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/data/AbstractDataActionTest.java