class VulnerabilityUtils {

    public static List<String> successIdsFromUpdateMap(Map<UpdateType, List<Vulnerability>> updateMap){
        List<String> totalList = new ArrayList<>();

        totalList.addAll(nullToEmptyList(updateMap.get(UpdateType.NEW)).stream().map(Vulnerability::getId).collect(Collectors.toList()));
        totalList.addAll(nullToEmptyList(updateMap.get(UpdateType.UPDATED)).stream().map(Vulnerability::getId).collect(Collectors.toList()));
        totalList.addAll(nullToEmptyList(updateMap.get(UpdateType.OLD)).stream().map(Vulnerability::getId).collect(Collectors.toList()));

        return totalList;
    }

}