void (@InspectionMessage String message, Map<Object, List<PsiExpression>> map) { for (List<PsiExpression> args : map.values()) { if (args.size() < 2) continue; for (int i = 0; i < args.size(); i++) { PsiExpression arg = args.get(i); PsiExpression nextArg = args.get((i + 1) % args.size()); LocalQuickFix fix = new NavigateToDuplicateFix(nextArg); myHolder.registerProblem(arg, message, fix); } } }