public String computeIndentation(int offset, boolean assumeOpening) {

        indent = 1;

        // add additional indent
        StringBuilder indent = createIndent(this.indent);

        if (this.indent < 0) {
            unindent(indent);
        }

        if (indent == null) {
            return null;
        }

        //adding offset, after adding indent to keep consistency on whitespace of the last line.
        indent.append(getReferenceIndentation(offset));

        return indent.toString();
    }
Computes the indentation at <code>offset</code>.

@param offset        the offset in the document
@param assumeOpening <code>true</code> if an opening statement should be assumed
@return a String which reflects the correct indentation for the line in which offset resides, or
<code>null</code> if it cannot be determined
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/indent/SQLIndenter.java