void () { configureFromFileText(getTestName(false) + ".java", """ <selection>class Foo { \t@Override \tpublic boolean equals(Object other) { \t\treturn this == other; \t} }</selection>"""); EditorTestUtil.buildInitialFoldingsInBackground(getEditor()); configureSoftWraps(32, false); // verify initial state assertEquals(4, EditorUtil.getTabSize(getEditor())); assertEquals("[FoldRegion +(59:64), placeholder=' { ', FoldRegion +(85:88), placeholder=' }']", getEditor().getFoldingModel().toString()); verifySoftWrapPositions(52, 85); runWriteCommand(() -> { Document document = getEditor().getDocument(); for (int i = document.getLineCount() - 1; i >= 0; i--) { document.insertString(document.getLineStartOffset(i), "//"); } }); verifySoftWrapPositions(58, 93); }