I am trying to perform click(or many clicks) on view if it visible on screen. I want smth like this, but there is no `obj.isVisible()` method.

```
UiObject obj = device.findObject(new UiSelector().resourceId("ru.litres.android:id/container"));
UiObject objTop = device.findObject(new UiSelector().resourceId("ru.litres.android:id/container_top"));
while (obj.isVisible())
     objTop.click();

```