private void flushCommand(IDocument document, DocumentCommand command)
        throws BadLocationException
    {

        if (!command.doit) {
            return;
        }

        document.replace(command.offset, command.length, command.text);

        command.doit = false;
        if (command.text != null) {
            command.offset += command.text.length();
        }
        command.length = 0;
        command.text = null;
    }
Guesses if the command operates within a newly created SQL multi-line comment or not. If in doubt, it will assume
that the SQL multi-line comment is new.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/indent/SQLCommentAutoIndentStrategy.java