private @Nullable InspectionTreeNode getNextOccurrence(boolean next) {
      InspectionTreeNode selected = ObjectUtils.notNull(getSelectedNode(), getRoot());
      InspectionTreeNode node = selected;
      while (true) {
        node = next ? next(node) : prev(node);
        if (node == null || node == selected) return null;
        if (isOccurrenceNode(node)) return node;
      }
    }
private @Nullable InspectionTreeNode getNextOccurrence(boolean next)