void (@Nullable List<? extends AnAction> viewerActions) { collectToolbarActions(viewerActions); ((ActionToolbarImpl)myToolbar).reset(); // do not leak previous DiffViewer via caches myToolbar.updateActionsImmediately(); recursiveRegisterShortcutSet(myToolbarGroup, myMainPanel, null); if (myIsNewToolbar) { ((ActionToolbarImpl)myRightToolbar).reset(); myRightToolbar.updateActionsImmediately(); recursiveRegisterShortcutSet(myRightToolbarGroup, myMainPanel, null); } }