// "Create Method 'foo'" "true" interface Int { } class A1 implements Int { public void foo(Int c) { //To change body of created methods use File | Settings | File Templates. } } class B1 { A1 a; void foo (Int c) { a.foo(c); } }