void (final PsiElement child, final MultiMap<PsiElement, String> conflicts, final String varName) { if (child instanceof PsiNamedElement element) { if (varName.equals(element.getName())) { addConflict(varName, element, conflicts); } else { for (PsiElement psiElement : child.getChildren()) { if (!(child instanceof GrTypeDefinition)) { validateVariableOccurrencesDownImpl(psiElement, conflicts, varName); } } } } }