class SqlTracerImpl implements SqlTracer {

    private final SqlTraceComponent sqlTraceComponent;

    SqlTracerImpl(final SqlTraceComponent sqlTraceComponent) {
        this.sqlTraceComponent = sqlTraceComponent;
    }

    @Override
    public String attachTraceData(final String sql) {<FILL_FUNCTION_BODY>}
}

        if (sqlTraceComponent == null
            || sqlTraceComponent.getComment() == null
            || sqlTraceComponent.getCommentStyle() == null) {
            return sql;
        }

        final String comment = sqlTraceComponent.getComment();
        final DatabaseCommentStyle commentStyle = sqlTraceComponent.getCommentStyle();

        final StringBuilder sb = new StringBuilder(sql);

        sb.append(" ").append(commentStyle.getPrefix()).append(" ").append(comment).append(" ");
        commentStyle.getSuffix().ifPresent(sb::append);

        return sb.toString();
    
<no_super_class>