protected void buildToolbar(@Nullable List<? extends AnAction> viewerActions) {
    collectToolbarActions(viewerActions);

    ((ActionToolbarImpl)myToolbar).reset(); // do not leak previous DiffViewer via caches
    myToolbar.setTargetComponent(myContentPanel.getTargetComponent());
    myToolbar.updateActionsImmediately();
    recursiveRegisterShortcutSet(myToolbarGroup, myMainPanel, null);

    if (myIsNewToolbar) {
      myRightToolbar.setTargetComponent(myContentPanel.getTargetComponent());
      ((ActionToolbarImpl)myRightToolbar).reset();
      myRightToolbar.updateActionsImmediately();
      recursiveRegisterShortcutSet(myRightToolbarGroup, myMainPanel, null);
    }
  }
protected void buildToolbar(@Nullable List<? extends AnAction> viewerActions)