I think this is needed here:
```Java
if(!child.isVisible())
    continue;
```