void () { myFixture.configureByFile("/pyi/formatter/" + getTestName(true) + ".pyi"); WriteCommandAction.runWriteCommandAction(null, () -> { CodeStyleManager codeStyleManager = CodeStyleManager.getInstance(myFixture.getProject()); PsiFile file = myFixture.getFile(); codeStyleManager.reformat(file); }); myFixture.checkResultByFile("/pyi/formatter/" + getTestName(true) + "_after.pyi"); }