void (@NotNull final CodeInsightTestFixture fixture, @NotNull final Surrounder surrounder, @NotNull final String before, @NotNull final String after) { fixture.configureByFile(before); WriteCommandAction.writeCommandAction(fixture.getProject()) .run(() -> SurroundWithHandler.invoke(fixture.getProject(), fixture.getEditor(), fixture.getFile(), surrounder)); fixture.checkResultByFile(after, false); }