1, there isn't a way. 2, you could probably write a #ktlint rule; outside of a framework like that, you'll have to do the work of figuring out type resolution yourself
ephemient
11/04/2022, 8:06 PM
actually now that I think more, #detekt would work better than ktlint since that's the one with optional type resolution