<BUG>public static Ion getGenericIon(IonType ionType, int subType, ArrayList<NeutralLoss> neutralLosses) {</BUG><CONTEXT>return "Unknown ion type";default:throw new UnsupportedOperationException("No name for ion type " + type + ".");}}<extra_id_0>switch (ionType) {case ELEMENTARY_ION:return new ElementaryIon("new ElementaryIon", 0.0, subType);</CONTEXT>
public static Ion getGenericIon(IonType ionType, int subType, NeutralLoss[] neutralLosses) {