boolean (@Nullable PsiElement expression) { if (!(expression instanceof GrQualifiedReference)) return false; return isClassReference(expression) || ((GrQualifiedReference<?>)expression).resolve() instanceof PsiClass; }