PsiElementPredicate () { return element -> element instanceof GrReferenceExpression ref && "class".equals(ref.getReferenceName()) && ref.getQualifier() instanceof GrReferenceExpression qualifier && qualifier.resolve() instanceof PsiClass; }