void (@NotNull final CodeInsightTestFixture fixture, @NotNull final String before, @NotNull final String after) { fixture.configureByFile(before); final List<SmartEnterProcessor> processors = SmartEnterProcessors.INSTANCE.allForLanguage(fixture.getFile().getLanguage()); WriteCommandAction.writeCommandAction(fixture.getProject()).run(() -> { final Editor editor = fixture.getEditor(); for (SmartEnterProcessor processor : processors) { processor.process(fixture.getProject(), editor, fixture.getFile()); } }); fixture.checkResultByFile(after, false); }