void (PsiParameter[] parameters, PsiElement context, String methodName) { final ParameterAccessVisitor visitor = new ParameterAccessVisitor(parameters); context.accept(visitor); for (PsiParameter unusedParameter : visitor.getUnusedParameters()) { registerVariableError(unusedParameter, InspectionGadgetsBundle.message( "suspicious.comparator.compare.descriptor.parameter.not.used", methodName)); } }