@Override
    public void customizeDocumentCommand(IDocument document, DocumentCommand command)
    {
        try {

            if (command.text != null && command.length == 0) {
                String[] lineDelimiters = document.getLegalLineDelimiters();
                int index = TextUtilities.endsWith(lineDelimiters, command.text);
                if (index > -1) {
                    // ends with line delimiter
                    if (lineDelimiters[index].equals(command.text)) {
                        // just the line delimiter
                        commentIndentAfterNewLine(document, command);
                    }
                    return;
                }
            }

            if (command.text != null && command.text.equals("/")) {
                //$NON-NLS-1$
                commentIndentForCommentEnd(document, command);
                return;
            }

            ITypedRegion partition = TextUtilities.getPartition(document, partitioning, command.offset, true);
            int partitionStart = partition.getOffset();
            int partitionEnd = partition.getLength() + partitionStart;

            String text = command.text;
            int offset = command.offset;
            int length = command.length;

/*
            // partition change
            final int PREFIX_LENGTH = SQLConstants.ML_COMMENT_START.length();
            final int POSTFIX_LENGTH = SQLConstants.ML_COMMENT_END.length(); //$NON-NLS-1$
            if ((offset < partitionStart + PREFIX_LENGTH || offset + length > partitionEnd - POSTFIX_LENGTH)
                || text != null && text.length() >= 2
                && ((text.contains(SQLConstants.ML_COMMENT_END)) || (document.getChar(offset) == '*' && text.startsWith(
                "/")))) //$NON-NLS-1$ //$NON-NLS-2$
            {
                return;
            }
*/

        }
        catch (BadLocationException e) {
//            _log.error(EditorMessages.error_badLocationException, e);
        }
    }
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