List<PsiClass> () { PsiReferenceList list = PsiKeyword.EXTENDS.equals(myTarget.getText()) ? myClass.getExtendsList() : myClass.getImplementsList(); if (list == null) return Collections.emptyList(); final PsiClassType[] classTypes = list.getReferencedTypes(); return ChooseClassAndDoHighlightRunnable.resolveClasses(classTypes); }