void () { if (myDisposed) return; UIUtil.invokeLaterIfNeeded(() -> { if (myDisposed) return; myDisposed = true; onDispose(); myState.destroy(); myToolbarStatusPanel.setContent(null); myContentPanel.setContent(null); myDiffInfoWrapper.setContent(null); myToolbarGroup.removeAll(); myRightToolbarGroup.removeAll(); myPopupActionGroup.removeAll(); ActionUtil.clearActions(myMainPanel); onAssigned(myActiveRequest, false); myState = EmptyState.INSTANCE; myActiveRequest = NoDiffRequest.INSTANCE; }); }