// !CHECK_TYPE // FILE: Predicate.java import org.jetbrains.annotations.NotNull; public interface Predicate { // Same effect with @Nullable here boolean invoke(@NotNull T t); } // FILE: Main.kt fun process(x: Predicate) {} fun main() { process(Predicate { x -> x checkType { _() } true }) }