List<String> (VirtualFile f, Function<? super LookupElement, String> lookupElementStringFunction) { configTest(f); LookupElement[] variants = myFixture.completeBasic(); List<String> result = new ArrayList<>(); for (LookupElement each : variants) { result.add(lookupElementStringFunction.apply(each)); } return result; }