class CommentGenerator extends AbstractSqlGenerator<CommentStatement> {

    @Override
    public Sql[] generateSql(CommentStatement comment, Database database, SqlGeneratorChain sqlGeneratorChain) {
        return new Sql[] {
                new SingleLineComment(comment.getText(), database.getLineComment())     
        };
    }

    @Override
    public ValidationErrors validate(CommentStatement comment,
                                     Database database, SqlGeneratorChain sqlGeneratorChain) {<FILL_FUNCTION_BODY>}

}

        ValidationErrors validationErrors = new ValidationErrors();
        validationErrors.checkRequiredField("text", comment.getText());
        return validationErrors;
    
<methods>public non-sealed void <init>() ,public boolean generateRollbackStatementsIsVolatile(liquibase.database.Database) ,public boolean generateStatementsIsVolatile(liquibase.database.Database) ,public int getPriority() ,public boolean looksLikeFunctionCall(java.lang.String, liquibase.database.Database) ,public boolean supports(liquibase.statement.core.CommentStatement, liquibase.database.Database) ,public liquibase.exception.Warnings warn(liquibase.statement.core.CommentStatement, liquibase.database.Database, SqlGeneratorChain<liquibase.statement.core.CommentStatement>) <variables>