class Test { interface I { Object in voke(); } interface IStr { String foo(); } public static void call(IStr str) {} public static void call(I i) { } public static void main(String[] args) { call(()-> null); } }