response.setPeopleHealth(new ArrayList<String>() {{
for(HealthEnum e :HealthEnum.values()) {
add(e.getValue());
}
}})
sonarlint gives warning for this.
I tried to convert to singletone but it does not work with for, because it cant be added like arraylist.
Can i use lambda or stream?