/**
  * Set the precursor mass of the spectrum ID associated to the given precursor charge chartData
  *
  * @param precursorCharge the precursor charge chartData
  */
 private void setSpectrumPrecursorCharge(PrecursorData precursorCharge) {
   String spectrumID = precursorCharge.getSpectrumID();
   SpectrumData spectrum = getOrCreateSpectrum(spectrumID);
   spectrum.setPrecursorCharge(precursorCharge.getValue());
 }