@Override
	public void removeComponentProvider(ComponentProvider provider) {
		Runnable r = () -> {
			toolActions.removeGlobalAction(provider.getShowProviderAction());
			toolActions.removeActions(provider);
			winMgr.removeComponent(provider);
		};
		Swing.runNow(r);
	}
A partial implementation of {@link Tool} that serves as a place to share common functionality
Ghidra/Framework/Docking/src/main/java/docking/AbstractDockingTool.java