boolean (PsiType type) { final PsiClass resolveClass = PsiUtil.resolveClassInType(type); return resolveClass != null && !resolveClass.isEnum() && !resolveClass.isAnnotationType() && !resolveClass.isInterface() && !(resolveClass instanceof PsiTypeParameter) && InheritanceUtil.isInheritor(resolveClass, myAncestorName); }