void () { myUseOnFullReformat = true; myTestIndentOptions.INDENT_SIZE = 3; myTestIndentOptions.TAB_SIZE = 2; myTestIndentOptions.USE_TAB_CHARACTER = true; PsiFile file = myFixture.configureByFile(getTestName(true) + "_before.java"); WriteCommandAction.runWriteCommandAction(getProject(), () -> CodeStyleManager.getInstance(getProject()).reformatText(file, 0, file.getTextRange().getEndOffset())); myFixture.checkResultByFile(getTestName(true) + "_after.java"); }