void (Object component, int x, int y) { referencex = x; referencey = y; for (; component != null; component = getParent(component)) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> bounds = getRectangle(component, "bounds"); referencex += bounds.<error descr="Cannot resolve symbol 'x'">x</error>; referencey += bounds.<error descr="Cannot resolve symbol 'y'">y</error>; } }