<BUG>for (ArrayList<NeutralLoss> losses : neutralLossesCombinations) {ions.add(new PeptideFragmentIon(subType, faa, rewindMass - Atom.N.getMonoisotopicMass() - getLossesMass(losses), losses));</BUG><CONTEXT>ions = new ArrayList<Ion>(1);}ionsMap.put(subType, ions);}if (neutralLossesCombinations != null) {<extra_id_0>}</CONTEXT>
for (NeutralLossCombination losses : neutralLossesCombinations) {ions.add(new PeptideFragmentIon(subType, faa, rewindMass - Atom.N.getMonoisotopicMass() - losses.getMass(), losses.getNeutralLossCombination()));