pregnancyOutcomeNotificationList.add(notification);
insertNotificationTypeNode(pregnancyOutcomeNode);
int size = treeModel.getChildCount(pregnancyOutcomeNode);
int preferredPosition = pregnancyOutcomeNotificationList.indexOf(notification);
int safePosition = (preferredPosition < size ? preferredPosition : size);
treeModel.insertNodeInto(newNotificationNode, pregnancyOutcomeNode, safePosition);
pregnancyOutcomeNode.setUserObject("Pregnancy outcome " + "(" + pregnancyOutcomeNotificationList.size() + ")");
} else if (notification.getType() == Notification.Type.PREGNANCY) {
reload = (reload || pregnancyNotificationList.isEmpty());
pregnancyNotificationList.add(notification);
insertNotificationTypeNode(pregnancyNode);