private boolean endsWithLF(StringBuilder result, char lfChar) {
        boolean endsWithLF = false;
        for (int k = result.length(); k > 0; k--) {
            final char lch = result.charAt(k - 1);
            if (!Character.isWhitespace(lch)) {
                break;
            }
            if (lch == lfChar) {
                endsWithLF = true;
                break;
            }
        }
        return endsWithLF;
    }
Creates a new SQL auto indent strategy for the given document partitioning.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/indent/SQLAutoIndentStrategy.java