code: private int getMaxOccurence(double massTo, int element_pos, int[] matrix, List<IIsotope> isoToCond_new) {
          double massIn = isoToCond_new.get(element_pos).getExactMass();
          double massToM = massTo;
          for (int i = 0; i < matrix.length; i++)
              if (i != element_pos) if (matrix[i] != 0) massToM -= isoToCond_new.get(i).getExactMass() * matrix[i];
  
          int value = (int) ((massToM + 1) / massIn);
          return value;
      }
docs: Get the maximal occurrence of this List.
  
  @param massTo
  @param element_pos
  @param matrix
  @param elemToCond_new
  @return                 The occurrence value