class X { interface I { int get(); } interface J { Integer get(); } I is = X::m; J j = X::m; @org.jetbrains.annotations.Nullable static Integer m() { return null; } }