List<AnAction> () { List<AnAction> group = new ArrayList<>(); DefaultActionGroup diffGroup = DefaultActionGroup.createPopupGroup(() -> ActionsBundle.message("group.compare.contents.text")); diffGroup.getTemplatePresentation().setIcon(AllIcons.Actions.Diff); diffGroup.add(Separator.create(ActionsBundle.message("group.compare.contents.text"))); diffGroup.add(new TextShowPartialDiffAction(PartialDiffMode.LEFT_MIDDLE, true)); diffGroup.add(new TextShowPartialDiffAction(PartialDiffMode.RIGHT_MIDDLE, true)); diffGroup.add(new TextShowPartialDiffAction(PartialDiffMode.LEFT_RIGHT, true)); diffGroup.add(new ShowDiffWithBaseAction(ThreeSide.LEFT)); diffGroup.add(new ShowDiffWithBaseAction(ThreeSide.BASE)); diffGroup.add(new ShowDiffWithBaseAction(ThreeSide.RIGHT)); group.add(diffGroup); group.add(new Separator(DiffBundle.messagePointer("action.Anonymous.text.apply.non.conflicting.changes"))); group.add(new ApplyNonConflictsAction(ThreeSide.LEFT, DiffBundle.message("action.merge.apply.non.conflicts.left.text"))); group.add(new ApplyNonConflictsAction(ThreeSide.BASE, DiffBundle.message("action.merge.apply.non.conflicts.all.text"))); group.add(new ApplyNonConflictsAction(ThreeSide.RIGHT, DiffBundle.message("action.merge.apply.non.conflicts.right.text"))); group.add(new MagicResolvedConflictsAction()); group.add(Separator.getInstance()); group.addAll(myTextDiffProvider.getToolbarActions()); group.add(new MyToggleExpandByDefaultAction()); group.add(new MyToggleAutoScrollAction()); group.add(myEditorSettingsAction); return group; }