Add missing dependent classes from string template and antlr code