in aws-codeguruprofiler-profilinggroup/src/main/java/software/amazon/codeguruprofiler/profilinggroup/CreateHandler.java [182:189]
private static Map<String, String> tagsFromModel(final ResourceModel model) {
List<Tag> tags = model.getTags();
if (tags == null || tags.isEmpty()) {
return emptyMap();
}
return tags.stream().collect(Collectors.toMap(Tag::getKey, Tag::getValue));
}