public String getReferenceIndentation(int offset) {
        int unit;
        unit = findReferencePosition(offset);
        //   if we were unable to find anything, return null
        if (unit == SQLHeuristicScanner.NOT_FOUND) {
            return null;
        }

        return getLeadingWhitespace(unit);
    }
Computes the indentation at the reference point of <code>position</code>.

@param offset the offset in the document
@return a String which reflects the indentation at the line in which the reference position to
<code>offset</code> 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