public static void fillMapper(StringToIntMapper<AmplSubset> mapper, Network network) {
network.getVoltageLevelStream().forEach(vl -> mapper.newInt(AmplSubset.VOLTAGE_LEVEL, vl.getId()));
getBuses(network).forEach(b -> mapper.newInt(AmplSubset.BUS, b.getId()));
fillLines(mapper, network);
fillTwoWindingsTransformers(mapper, network);
fillThreeWindingsTransformers(mapper, network);
fillDanglingLines(mapper, network);
network.getLoadStream().forEach(l -> mapper.newInt(AmplSubset.LOAD, l.getId()));
network.getShuntCompensatorStream().forEach(sc -> mapper.newInt(AmplSubset.SHUNT, sc.getId()));
network.getGeneratorStream().forEach(g -> mapper.newInt(AmplSubset.GENERATOR, g.getId()));
network.getStaticVarCompensatorStream().forEach(svc -> mapper.newInt(AmplSubset.STATIC_VAR_COMPENSATOR, svc.getId()));
network.getHvdcLineStream().forEach(hvdc -> mapper.newInt(AmplSubset.HVDC_LINE, hvdc.getId()));
network.getHvdcConverterStations().forEach(conv ->
mapper.newInt(conv.getHvdcType().equals(HvdcType.VSC) ? AmplSubset.VSC_CONVERTER_STATION : AmplSubset.LCC_CONVERTER_STATION, conv.getId()));
}