public static Position getPreviousStartOfWord(String content, Position pos) {
        try {
            int offset = positionToOffset(content, pos) - 1;

            // Skip whitespace
            // But not newline because newline is a token
            while (offset >= 0 && Character.isWhitespace(content.charAt(offset)) && content.charAt(offset) != '\n')offset--;

            for (int i = offset; i >= 0; i--) {
                if (Character.isWhitespace(content.charAt(i)))return StringUtils.offsetToPosition(content, i + 1);
            }
        } catch (Exception e) {
        }

        return null;
    }
Indents all lines of a string except the first one by indentDelta spaces. If indentDelta is negative it will unindent.
Similar to selecting a block of text and hitting tab/shift-tab (or &lt;, &gt; in vim), but not quite equal. If you try to unindent by more spaces 
than the current indent of a line, nothing will happen.

@param text the text to modify
@param indentDelta number of spaces to add or subtract indentation.
@return the modified text
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/common/StringUtils.java