class A extends A.Foo, B{ } interface B{ static class Foo{ } }