void (PsiExpression[] expressions, @InspectionMessage String message) { Map<Object, List<PsiExpression>> groups = StreamEx.of(expressions).mapToEntry(OverwrittenKeyVisitor::getKey, Function.identity()) .nonNullKeys().grouping(); registerDuplicates(message, groups); }