PsiClassType[] (PsiClass aClass) { if (aClass instanceof PsiAnonymousClass) { return new PsiClassType[]{((PsiAnonymousClass)aClass).getBaseClassType()}; } PsiReferenceList list = aClass.getImplementsList(); return list == null ? PsiClassType.EMPTY_ARRAY : list.getReferencedTypes(); }