@CalledInAwt private void destroyViewer() { Disposer.dispose(myViewer); myMainPanel.putClientProperty(AnAction.ourClientProperty, null); myContentPanel.setContent(null); myToolbarPanel.setContent(null); myToolbarStatusPanel.setContent(null); myCloseHandler = null; myBottomActions = null; }