peakMZRange, peakIntensityRange);
peak.setCharge(currentPeakCharge);
if (currentIsotopes.size() > 0) {
SimpleIsotopePattern newPattern = new SimpleIsotopePattern(
currentIsotopes.toArray(new DataPoint[0]),
currentIsotopePatternStatus,
currentIsotopePatternDescription);
peak.setIsotopePattern(newPattern);
currentIsotopes.clear();