public boolean hasNeutralLosses() {
switch (type) {
case PEPTIDE_FRAGMENT_ION:
case TAG_FRAGMENT_ION:
case PRECURSOR_ION:
<BUG>ArrayList<NeutralLoss> neutralLosses = getNeutralLosses();

return neutralLosses != null && !neutralLosses.isEmpty();
</BUG>
default:

public boolean hasNeutralLosses() {
switch (type) {
case PEPTIDE_FRAGMENT_ION:
case TAG_FRAGMENT_ION:
case PRECURSOR_ION:
NeutralLoss[] neutralLosses = getNeutralLosses();
return neutralLosses != null && neutralLosses.length > 0;
default:
