void () { final Document doc = new DocumentImpl(""" line1 \t line2 """); assertEquals("", DocumentUtil.getIndent(doc, doc.getLineStartOffset(0) + 2).toString()); assertEquals(" \t ", DocumentUtil.getIndent(doc, doc.getLineStartOffset(1) + 2).toString()); assertEquals("", DocumentUtil.getIndent(doc, doc.getLineStartOffset(2)).toString()); }