public void dispose() {
		// make sure this is on the swing thread to avoid clearing stuff while the swing update
		// manager is firing its processContextChanged() call
		Swing.runIfSwingOrRunLater(() -> {
			updateManager.dispose();
			for (WindowActionManager actionManager : windowToActionManagerMap.values()) {
				actionManager.dispose();
			}
			windowToActionManagerMap.clear();
		});
	}
Class to manage all the global actions that show up on the main tool menubar or toolbar
Ghidra/Framework/Docking/src/main/java/docking/GlobalMenuAndToolBarManager.java