firstNonSyntheticClass

Returns the current class if it's a real class, otherwise walks up the hierarchy of enclosing/nesting classes until it finds a real one.

In practical terms, this strips away Kotlin's anonymous lambda "classes" and other compatibility shims, returning the real class.