VcsCommittedViewAuxiliary (@NotNull DecoratorManager manager, @Nullable RepositoryLocation location) { RootsAndBranches rootsAndBranches = new RootsAndBranches(myVcs, manager, location); refreshMergeInfo(rootsAndBranches); DefaultActionGroup popup = DefaultActionGroup.createPopupGroup(() -> myVcs.getDisplayName()); popup.add(rootsAndBranches.getIntegrateAction()); popup.add(rootsAndBranches.getUndoIntegrateAction()); popup.add(new ConfigureBranchesAction()); ShowHideMergePanelAction action = new ShowHideMergePanelAction(manager, rootsAndBranches.getStrategy()); return new VcsCommittedViewAuxiliary(singletonList(popup), () -> { if (myMergeInfoUpdatesListener != null) { myMergeInfoUpdatesListener.removePanel(rootsAndBranches); rootsAndBranches.dispose(); } }, singletonList(action)); }