protected void writeRecognizer(ST template, CodeGenerator gen) {
if ( g.tool.launch_ST_inspector ) {
STViz viz = template.inspect();
if (g.tool.ST_inspector_wait_for_close) {
try {
viz.waitForClose();
}
catch (InterruptedException ex) {
g.tool.errMgr.toolError(ErrorType.INTERNAL_ERROR, ex);
}
}