void (int itemIndex) { if (myItems.isEmpty() || itemIndex < 0 || itemIndex >= myItems.size()) return; final ItemData id = myItems.get(itemIndex); if (id != null && id.myAction != null) id.myAction.run(); }