<BUG>for (ArrayList<NeutralLoss> losses : neutralLossesCombinations) {ions.add(new TagFragmentIon(subType, aa, subaa, forwardMass - getLossesMass(losses), losses, massOffset));</BUG><CONTEXT>ions = ionsMap.get(subType);if (ions == null) {ions = new ArrayList<Ion>();ionsMap.put(subType, ions);}<extra_id_0>}</CONTEXT>
for (NeutralLossCombination losses : neutralLossesCombinations) {ions.add(new TagFragmentIon(subType, aa, subaa, forwardMass - losses.getMass(), losses.getNeutralLossCombination(), massOffset));