void update() {
		JMenuBar menuBar = menuBarMgr.getMenuBar();
		if (menuBar.getMenuCount() > 0) {
			node.setMenuBar(menuBar);
		}

		node.setToolBar(toolBarMgr.getToolBar());
		node.validate();
	}
Some actions' {@link DockingActionIf#isEnabledForContext(ActionContext)} methods may
inadvertently display an error dialog, allowing for the Swing thread to reenter and modify
the {@link #actionToProxyMap}. We want to allow this, but detect it and bail early.
Ghidra/Framework/Docking/src/main/java/docking/WindowActionManager.java