void () { @SuppressWarnings("ALL") @Language("JAVA") String text = """ public class Foo { \tpublic static void main(String[] args) { \t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() { \t\t\t@Override \t\t\tpublic void run() { \t\t\t\tSystem.out.println(); \t\t\t} \t\t}); \t} }"""; configure(text); assertNotNull(myFixture.getEditor().getFoldingModel().getCollapsedRegionAtOffset(text.indexOf("new"))); myFixture.getEditor(). getSettings().setUseTabCharacter(true); EditorTestUtil.configureSoftWraps(myFixture.getEditor(), 1000); myFixture.getEditor().getCaretModel().moveToOffset(text.indexOf("System")); myFixture.performEditorAction(IdeActions.ACTION_EDITOR_TAB); myFixture.checkResult(""" public class Foo { \tpublic static void main(String[] args) { \t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() { \t\t\t@Override \t\t\tpublic void run() { \t\t\t\t\t<caret>System.out.println(); \t\t\t} \t\t}); \t} }"""); }