import java.util.*; interface VcsRoot { } interface SVcsRoot extends VcsRoot { } interface A { List getVcsRoots(); } interface B { List getVcsRoots(); } interface F1 extends A, B { } class G { void f(F1 o) { SVcsRoot r = o.getVcsRoots().get(0); } }