void () { myUsageView.addButtonToLowerPane(new AbstractAction(SSRBundle.message("create.inspection.from.template.action.text")) { @Override public void actionPerformed(ActionEvent e) { StructuralSearchProfileActionProvider.createNewInspection(myConfiguration.copy(), mySearchContext.getProject()); } }); }