public List<String> addStatement(String statement) {
            String trimmedStatement = statement.trim();
            if (!trimmedStatement.isEmpty()) {
                statements.add(trimmedStatement);
            }
            return statements;
        }
An SQL script parser.

<p>It performs lexical analysis of a script and generates events for semicolons.
As a result it returns a script without comments and newlines.</p>
core/src/main/java/org/jdbi/v3/core/internal/SqlScriptParser.java