private List<String> removeEmptyStatements(List<String> stmts) {
        List<String> result = new ArrayList<String>();
        for (String s : stmts) {
            if (s.matches("\\s*")) continue;
            result.add(s);
        }
        return result;
    }