boolean () { if (myCursorPositions.size() >= 2) { Pair<FindModel, FindResult> oldPosition = myCursorPositions.get(myCursorPositions.size() - 2); if (oldPosition.first.equals(myFindModel)) { FindResult newCursor; if ((newCursor = findOccurrenceEqualTo(oldPosition.second)) != null) { myCursorPositions.pop(); myCursor = newCursor; return true; } } } return false; }