isVoidOrUnit

val PsiType?.isVoidOrUnit: Boolean(source)

Whether this PsiType is void or Unit

In Kotlin 1.6 some expressions now explicitly return Unit instead of just being PsiType.VOID, so this returns whether this type is either.