Rectangle[] shape = UIUtils.getComponentVisibleArea(this, new Filter<Component>() {
public Acceptance accept(Component c) {
if(c instanceof EmbeddedPanel) {
return Acceptance.NO;
}
TransparencyType transparency = UIUtils.getComponentTransparency(c);
switch(transparency) {
case TRANSPARENT_WITH_OPAQUE_CHILDREN: return Acceptance.TEST_CHILDREN;
case NOT_VISIBLE: return Acceptance.NO;
}
if(IS_DEBUGGING_SHAPE) {