inheritsFrom

fun PsiType.inheritsFrom(name: Name): Boolean(source)
fun PsiClass.inheritsFrom(name: Name): Boolean(source)

Return

whether this inherits from name. Returns true if this is directly name.