protected void commentIndentForCommentEnd(IDocument d, DocumentCommand c)
    {
        if (c.offset < 2 || d.getLength() == 0) {
            return;
        }
        try {
            if ("* ".equals(d.get(c.offset - 2, 2))) {
                //$NON-NLS-1$
                // modify document command
                c.length++;
                c.offset--;
            }
        }
        catch (BadLocationException excp) {
            // stop work
        }
    }
Copies the indentation of the previous line and add a star. If the SQL multi-line comment just started on this
line add standard method tags and close the comment.

@param d the document to work on
@param c the command to deal with
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/indent/SQLCommentAutoIndentStrategy.java