Map<Class<? extends Production>, Function<List<String>, Production>> constructorMap = new HashMap<>();
constructorMap.put(Production1.class, Production1::new);
constructorMap.put(Production2.class, Production2::new);
constructorMap.put(Production3.class, Production3::new);
constructorMap.put(Production4.class, Production4::new);
val tokens = new ArrayList<String>();
val production = new Production1(tokens);
val constructor = constructorMap.get(production.getClass());
val newProduction = constructor.apply(tokens);