void (MultiMap<PsiElement, String> conflicts, Collection<PsiElement> occurrences) { for (PsiElement occurrence : occurrences) { PsiElement origin = occurrence; while (occurrence instanceof GrReferenceExpression) { occurrence = occurrence.getParent(); } if (occurrence instanceof GrArgumentList) { conflicts.putValue(origin, GroovyBundle.message("closure.used.as.variable")); } } }