code: public static IsotopePattern normalize(IsotopePattern isotopeP) {
          IsotopeContainer isoHighest = null;
  
          double biggestAbundance = 0;
          /* Extraction of the isoContainer with the highest abundance */
          for (IsotopeContainer isoContainer : isotopeP.getIsotopes()) {
              double abundance = isoContainer.getIntensity();
              if (biggestAbundance < abundance) {
                  biggestAbundance = abundance;
                  isoHighest = isoContainer;
              }
          }
          /* Normalize */
          IsotopePattern isoNormalized = new IsotopePattern();
          for (IsotopeContainer isoContainer : isotopeP.getIsotopes()) {
              double inten = isoContainer.getIntensity() / isoHighest.getIntensity();
              IsotopeContainer icClone;
              try {
                  icClone = (IsotopeContainer) isoContainer.clone();
                  icClone.setIntensity(inten);
                  if (isoHighest.equals(isoContainer))
                      isoNormalized.setMonoIsotope(icClone);
                  else
                      isoNormalized.addIsotope(icClone);
  
              } catch (CloneNotSupportedException e) {
                  e.printStackTrace();
              }
  
          }
          isoNormalized.setCharge(isotopeP.getCharge());
          return isoNormalized;
      }
docs: Return the isotope pattern normalized to the highest abundance.
  
  @param isotopeP  The IsotopePattern object to normalize
  @return          The IsotopePattern normalized