also add
(i instanceof Refreshable) {
 i.refresh()
}