protected static void findMemberHidesOuterMemberCollisions(final PsiMember member, final String newName, final List<? super UsageInfo> result) {
    if (member instanceof PsiCompiledElement) return;
    final PsiClass memberClass = member.getContainingClass();
    for (PsiClass aClass = memberClass != null ? memberClass.getContainingClass() : null; aClass != null; aClass = aClass.getContainingClass()) {
      if (member instanceof PsiMethod) {
        for (PsiMethod conflict : aClass.findMethodsByName(newName, true)) {
          findMemberHidesOuterMemberCollisions(member, conflict, memberClass, result);
        }
      }
      else {
        final PsiMember conflict = aClass.findFieldByName(newName, false);
        if (conflict == null) continue;
        findMemberHidesOuterMemberCollisions(member, conflict, memberClass, result);
      }
    }
  }
protected static void findMemberHidesOuterMemberCollisions(final PsiMember member, final String newName, final List<? super UsageInfo> result)