static void clickOnThingIfVisible(S thing) { L rects = thingsOnScreenMap().get(thing); if (nempty(rects)) click(random(rects)); }