class Safe { public String x(int i) { return "yes"; } static void main() { final Safe safe = new Safe(); IntFunction f = safe::x; } }