public static DockingActionIf getAction(Tool tool, String name) {

		Set<DockingActionIf> actions = getActionsByName(tool, name);
		if (actions.isEmpty()) {
			return null;
		}

		if (actions.size() > 1) {
			throw new AssertionFailedError("Found more than one action for name '" + name + "'");
		}

		return CollectionUtils.any(actions);
	}
Finds the singular tool action by the given name.  If more than one action exists with
that name, then an exception is thrown.  If you want more than one matching action,
the call {@link #getActionsByName(Tool, String)} instead.

<P>Note: more specific test case subclasses provide other methods for finding actions
when you have an owner name (which is usually the plugin name).

@param tool the tool containing all system actions
@param name the name to match
@return the matching action; null if no matching action can be found
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java