Yes, it’s difficult and it’s java problem that cannot be solved easily, just because Kotlin team tried to do that
Maybe at least you can create feature request for such compiler flag if you think it’s really helpful for you. Or at least optional IDE check
Also for your own code you can use package-default nullability annotations and mark all your existing java code as nullable