InspectionTreeNode (boolean next) { InspectionTreeNode node = getSelectedNode(); if (node == null) { return null; } return myModel.traverseFrom(node, next).filter(n -> n != node).filter(n -> isOccurrenceNode(n)).first(); }