boolean (PsiMember member, PsiElement qualifier) { if (!(qualifier instanceof GrExpression)) return false; final PsiType type = ((GrExpression)qualifier).getType(); if (!(type instanceof PsiClassType)) return false; final PsiClass psiClass = ((PsiClassType)type).resolve(); if (psiClass == null) return false; return qualifier.getManager().areElementsEquivalent(member.getContainingClass(), psiClass); }