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