interface I { static void foo(I i) {} } class WithPrivateInner { private class Inner implements I {} } class WithUsage { void n(I i) { I.foo(i); } }