void (boolean forward) { if (myTips.isEmpty()) { setTipsNotFoundText(); return; } int index = myCurrentTip != null ? myTips.indexOf(myCurrentTip) : -1; if (forward) { if (index < myTips.size() - 1) { setTip(myTips.get(index + 1)); } } else { if (index > 0) { setTip(myTips.get(index - 1)); } } }