public static String spaceIndent(int indent) {
        return new String(new char[indent]).replace("\0", " ");
    }
StringUtils
For dealing with specific problems related to Strings that represent text documents.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/common/StringUtils.java