JComponent () { final CommonActionsManager actionsManager = CommonActionsManager.getInstance(); DefaultActionGroup group = new DefaultActionGroup(); group.add(new RerunAction(this)); group.add(actionsManager.createPrevOccurenceAction(myTree.getOccurenceNavigator())); group.add(actionsManager.createNextOccurenceAction(myTree.getOccurenceNavigator())); group.add(new InvokeQuickFixAction(this)); group.addSeparator(); group.add(ActionManager.getInstance().getAction("EditInspectionSettings")); var viewOptionsActions = new DefaultActionGroup(InspectionsBundle.message("inspection.action.view.options"), null, AllIcons.Actions.Show); viewOptionsActions.addSeparator(InspectionsBundle.message("inspection.action.view.options.group.by")); viewOptionsActions.add(myGlobalInspectionContext.getUIOptions().createGroupByDirectoryAction(this)); viewOptionsActions.add(myGlobalInspectionContext.getUIOptions().createGroupBySeverityAction(this)); viewOptionsActions.addSeparator(); viewOptionsActions.add(myGlobalInspectionContext.getUIOptions().createFilterResolvedItemsAction(this)); viewOptionsActions.setPopup(true); group.add(viewOptionsActions); group.addSeparator(); TreeExpander treeExpander = new DefaultTreeExpander(myTree); group.add(actionsManager.createExpandAllAction(treeExpander, myTree)); group.add(actionsManager.createCollapseAllAction(treeExpander, myTree)); group.addSeparator(); group.add(createExportActions()); return createToolbar(group); }