void () { myFixture.configureByFile(getTestName(false) + ".json"); WriteCommandAction.runWriteCommandAction(null, () -> { CodeStyleManager codeStyleManager = CodeStyleManager.getInstance(myFixture.getProject()); codeStyleManager.reformat(myFixture.getFile()); }); myFixture.checkResultByFile(getTestName(false) + "_after.json"); }