public static Set<DockingActionIf> getActionsByName(Tool tool, String name) {

		Set<DockingActionIf> result = new HashSet<>();

		Set<DockingActionIf> toolActions = tool.getAllActions();
		for (DockingActionIf action : toolActions) {
			if (action.getName().equals(name)) {
				result.add(action);
			}
		}
		return result;
	}
A helper method to find all actions with the given name

@param tool the tool containing all system actions
@param name the name to match
@return the matching actions; empty list if no matches
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java