String (@NotNull String message, @NotNull FontPreferences fontPreferences) { StringBuilder sb = new StringBuilder(); sb.append(message).append(": "); sb.append("Real font families: "); boolean isFirst = true; for (String fontFamily : fontPreferences.getRealFontFamilies()) { if (isFirst) isFirst = false; else sb.append(", "); sb.append(fontFamily); } return sb.toString(); }