void (@NotNull AnActionEvent e) { final InspectionResultsView view = getView(e); InspectionProfileImpl inspectionProfile = view.getCurrentProfile(); if (view.isSingleInspectionRun()) { InspectionToolWrapper tool = getSingleTool(view); final DialogBuilder builder = new DialogBuilder() .title(InspectionsBundle.message("inspection.tool.window.inspection.dialog.title", tool.getDisplayName())); JComponent panel = OptionPaneRenderer.createOptionsPanel(tool.getTool(), builder, e.getProject()); LOG.assertTrue(panel != null, "Unexpectedly inspection '" + tool.getShortName() + "' didn't create an options panel"); builder.centerPanel(panel); builder.removeAllActions(); builder.addOkAction(); if (view.isRerunAvailable()) { builder.addActionDescriptor(new DialogBuilder.DialogActionDescriptor(InspectionsBundle.message("inspection.action.rerun"), -1) { @Override protected Action createAction(DialogWrapper dialogWrapper) { return new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { view.rerun(); dialogWrapper.close(DialogWrapper.OK_EXIT_CODE); } }; } }); } builder.show(); } else { final InspectionToolWrapper toolWrapper = view.getTree().getSelectedToolWrapper(false); if (toolWrapper != null) { final HighlightDisplayKey key = HighlightDisplayKey.find(toolWrapper.getShortName()); //do not search for dead code entry point tool if (key != null) { new EditInspectionToolsSettingsAction(key).editToolSettings(view.getProject(), inspectionProfile); return; } } final String[] path = view.getTree().getSelectedGroupPath(); EditInspectionToolsSettingsAction.editSettings(view.getProject(), inspectionProfile, (c) -> { if (path != null) { c.selectInspectionGroup(path); } }); } }