void (@NotNull final CodeInsightTestFixture fixture, @TestDataFile @NotNull final String before, @TestDataFile final String... after) { EdtTestUtil.runInEdtAndWait(() -> { assert after != null && after.length > 0; fixture.configureByFile(before); for (String file : after) { fixture.performEditorAction(IdeActions.ACTION_EDITOR_SELECT_WORD_AT_CARET); fixture.checkResultByFile(file, false); } }); }