// auto-magic type parameter might be a bad idea. supply explicitly if // in doubt. static IF2 if0ToIF2(IF0 f) { ret f == null ?: (a, b) -> f.get(); }