void (@NotNull final CodeInsightTestFixture fixture, @NotNull final String before, @NotNull final String after) { fixture.configureByFile(before); new ListTemplatesAction().actionPerformedImpl(fixture.getProject(), fixture.getEditor()); final LookupImpl lookup = (LookupImpl)LookupManager.getActiveLookup(fixture.getEditor()); assert lookup != null; lookup.finishLookup(Lookup.NORMAL_SELECT_CHAR); fixture.checkResultByFile(after, false); }