private static void findMemberHidesOuterMemberCollisions(PsiMember member,
                                                           PsiMember anotherMember,
                                                           PsiClass memberClass, 
                                                           List<? super UsageInfo> result) {
    ReferencesSearch.search(anotherMember).forEach(reference -> {
      PsiElement refElement = reference.getElement();
      if (refElement instanceof PsiReferenceExpression && ((PsiReferenceExpression)refElement).isQualified()) return true;
      if (PsiTreeUtil.isAncestor(memberClass, refElement, false)) {
        MemberHidesOuterMemberUsageInfo info = new MemberHidesOuterMemberUsageInfo(refElement, member);
        result.add(info);
      }
      return true;
    });
  }
private static void findMemberHidesOuterMemberCollisions(PsiMember member,
                                                           PsiMember anotherMember,
                                                           PsiClass memberClass, 
                                                           List<? super UsageInfo> result)