void (@NotNull AnalysisScope scope, @NotNull InspectionManager manager, @NotNull GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) { if (myLocalInspectionBase.PARAMETER) { globalContext.getRefManager().iterate(new RefJavaVisitor() { @Override public void visitMethod(@NotNull RefMethod refMethod) { try { if (!globalContext.shouldCheck(refMethod, UnusedDeclarationInspection.this) || !UnusedDeclarationPresentation.compareVisibilities(refMethod, myLocalInspectionBase.getParameterVisibility())) { return; } CommonProblemDescriptor[] descriptors = myUnusedParameters.checkElement(refMethod, scope, manager, globalContext, problemDescriptionsProcessor); if (descriptors != null) { problemDescriptionsProcessor.addProblemElement(refMethod, descriptors); } } catch (ProcessCanceledException | IndexNotReadyException e) { throw e; } catch (Throwable e) { LOG.error("Exception on '" + refMethod.getExternalName() + "'", e); } } }); } super.runInspection(scope, manager, globalContext, problemDescriptionsProcessor); }