void (@NotNull final PsiElement element, @NotNull final String newName, @NotNull final Map<? extends PsiElement, String> allRenames, @NotNull final List<UsageInfo> result) { if (element instanceof PsiField field) { findMemberHidesOuterMemberCollisions(field, newName, result); findSubmemberHidesFieldCollisions(field, newName, result); findCollisionsAgainstNewName(field, newName, result); } else if (element instanceof PsiLocalVariable || element instanceof PsiParameter) { JavaUnresolvableLocalCollisionDetector.findCollisions(element, newName, result); findLocalHidesFieldCollisions(element, newName, allRenames, result); } }