List<PsiClass> () { final GrReferenceExpression ref = getRefExpr(); final PsiClass targetClass = QuickfixUtil.findTargetClass(ref); if (targetClass == null || !canBeTargetClass(targetClass)) return Collections.emptyList(); final ArrayList<PsiClass> classes = new ArrayList<>(); collectSupers(targetClass, classes); return classes; }