void (String[] files, String... items) { myFixture.configureByFiles(files); LookupElement[] elements; try { CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION = false; elements = myFixture.complete(CompletionType.SMART); } finally { CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION = true; } assert elements != null; List<String> strings = ContainerUtil.map(elements, LookupElement::getLookupString); assertEquals(Arrays.asList(items), strings); }