// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE // FILE: A.java public class A { public static T compute(ThrowableComputable action) throws E { return (T) action; } } // FILE: ThrowableComputable.java public interface ThrowableComputable { T compute() throws E; } // FILE: test.kt fun main() { val headers = A.compute( ThrowableComputable { getCollection() } ) } fun getCollection(): Collection = TODO()