I’ve created a Gradle plugin that forces you to call inline class constructor within that class. It means you can validate inline class value with factory method!
I’d love your feedback to find corner cases, thanks 😘
https://github.com/Monchi/no-public-inline-class-call