void dispose() {

		// this will be null for non-standard use cases
		if (dockableComponent != null) {
			DockingWindowManager dwm = dockableComponent.getDockingWindowManager();
			Tool tool = dwm.getTool();
			ComponentProvider provider = dockableComponent.getComponentProvider();
			tool.removeLocalAction(provider, closeButtonManager.getAction());
			tool.removeLocalAction(provider, menuButtonManager.getAction());
		}

		headerUpdater.dispose();
		menuManager.dispose();
		toolBarManager.dispose();
	}
Removes an action from the toolbar and/or drop-down menu.
@param action the action to be removed.
Ghidra/Framework/Docking/src/main/java/docking/DockableToolBarManager.java