private boolean isCommentLine(IDocument document, int line)
        throws BadLocationException
    {

        if (document.getNumberOfLines() < line)
            return false;

        int offset = document.getLineOffset(line);
        int length = document.getLineLength(line);
        int firstChar = findEndOfWhiteSpace(document, offset, offset + length);
        length -= firstChar - offset;
        String lineContents = document.get(firstChar, length);

        String prefix = lineContents.trim();
        if (!prefix.startsWith("*") || prefix.startsWith("*/")) //$NON-NLS-1$ //$NON-NLS-2$
        {
            return false;
        }

        //lineContents = lineContents.substring(1).trim().toLowerCase();

        return true;
    }
returns true if the specified line is part of a paragraph and should be merged with the previous line.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/indent/SQLCommentAutoIndentStrategy.java