for (NeutralLoss neutralLoss : neutralLosses) {
names.add(neutralLoss.name);
}
Collections.sort(names);
<BUG>StringBuilder result = new StringBuilder(4 * neutralLosses.size());
</BUG>
for (String name : names) {
<BUG>result.append("-").append(name);
</BUG>
}

for (NeutralLoss neutralLoss : neutralLosses) {
names.add(neutralLoss.name);
}
Collections.sort(names);
StringBuilder result = new StringBuilder(4 * neutralLosses.length);
for (String name : names) {
result.append('-').append(name);
}
