This would have less repetition by pulling out the first parameter (I assume it is a css class):

```
String style = statistic.getPercentTranslated() == 0 ? "txt--neutral" : "txt--success";
displayUnit = new DisplayUnit(style, figure, getMessage("jsf.Translated"));
```