public void optimizeConfigs(ATNSimulator interpreter) {
		if ( readonly ) throw new IllegalStateException("This set is readonly");
		if ( configLookup.isEmpty() ) return;

		for (ATNConfig config : configs) {
//			int before = PredictionContext.getAllContextNodes(config.context).size();
			config.context = interpreter.getCachedContext(config.context);
//			int after = PredictionContext.getAllContextNodes(config.context).size();
//			System.out.println("configs "+before+"->"+after);
		}
	}
Gets the complete set of represented alternatives for the configuration
set.

@return the set of represented alternatives in this configuration set

@since 4.3
runtime/Java/src/org/antlr/v4/runtime/atn/ATNConfigSet.java