void () { ToolWindow toolWindow = myToolWindow; if (toolWindow == null) { return; } PropertiesComponent.getInstance().setValue(getShowInToolWindowProperty(), Boolean.FALSE.toString()); toolWindow.remove(); Disposer.dispose(toolWindow.getContentManager()); myToolWindow = null; restartAutoUpdate(false); }