void (PsiReferenceExpression qualified, PsiExpression instanceRef, PsiElement referencedInstance) { PsiElement resolved = qualified.resolve(); if (resolved instanceof PsiMember member) { final PsiClass containingClass = member.getContainingClass(); RefactoringUtil.IsDescendantOf isDescendantOf = myIsDescendantOfCache.get(containingClass); if (isDescendantOf == null) { isDescendantOf = new RefactoringUtil.IsDescendantOf(containingClass); myIsDescendantOfCache.put(containingClass, isDescendantOf); } visitMemberReference(member, qualified, isDescendantOf); } }