void () { myFixture.configureByFile("codeInsight/smartEnter/" + getTestName(true) + ".py"); final List<SmartEnterProcessor> processors = getSmartProcessors(PythonLanguage.getInstance()); WriteCommandAction.runWriteCommandAction(myFixture.getProject(), () -> { final Editor editor = myFixture.getEditor(); for (SmartEnterProcessor processor : processors) { processor.process(myFixture.getProject(), editor, myFixture.getFile()); } }); myFixture.checkResultByFile("codeInsight/smartEnter/" + getTestName(true) + "_after.py", true); }