List<LineIndentInfo> (String text) { TestData data = FormatterEngineTestsKt.extractFormattingTestData(text); Document document = EditorFactory.getInstance().createDocument(data.getTextToFormat()); FormatterBasedLineIndentInfoBuilder builder = new FormatterBasedLineIndentInfoBuilder(document, data.getRootBlock(), null); return builder.build(); }