*/
private static void getMultipleQueryTrees(String source,
List<String> queries, List<SelectStatementContext> trees)
throws ParseCancellationException
{
SelectStatementsEofContext tree;
queries.clear();
trees.clear();
List<CharStream> charStreamL = Lists.newArrayList();
SqlParser parser = getParser(source, charStreamL);
tree = parser.selectStatementsEof();
checkState(tree != null);
checkState(!(tree instanceof ErrorNode));
for (SelectStatementContext ssctx : tree.selectStatementsEtc().selectStatement())
{
trees.add(ssctx);
queries.add(charStreamL.get(0).getText(new Interval(ssctx.start.getStartIndex(), ssctx.stop.getStopIndex())));
}
}