I had this piece of code
List<UserNotification> userNotifications = new ArrayList<UserNotification>();
teatreAlertNotifications
.parallelStream()
.forEach(can -> userNotifications.add(new UserNotification(can)));
But since ArrayList is unsynchronized I think it is bad practice and I should use .stream() instead