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