void (PsiElement scope, PsiElement place, final String newName, final CollidingVariableVisitor collidingNameVisitor ) { ConflictingLocalVariablesVisitor collector = new ConflictingLocalVariablesVisitor(newName, collidingNameVisitor); if (place == null) { scope.accept(collector); } else { LOG.assertTrue(place.getParent() == scope); for (PsiElement sibling = place; sibling != null; sibling = sibling.getNextSibling()) { sibling.accept(collector); } } }