void (@NotNull final AnActionEvent e) { for (final Descriptor defaultDescriptor : defaultDescriptors) { InspectionToolWrapper wrapper = defaultDescriptor.getToolWrapper().createCopy(); wrapper.getTool().readSettings(Descriptor.createConfigElement(defaultDescriptor.getToolWrapper())); inspectionProfile.addScope(wrapper, scope, defaultDescriptor.getLevel(), true, e.getProject()); } onScopeAdded(scopeName); }