parentsWithSelf

fun FqName.parentsWithSelf(): Sequence<FqName>

Generates a sequence of FqName starting from the current FqName and including its parents up to the root. The sequence will include the current FqName as well.