void () { final Map<String, PsiElement> test = loadTest(8); for (int offset : StreamEx.of(1, 2, 3, 4, 8).map(number -> test.get("<arg" + number + ">").getTextOffset())) { final List<String> texts = Collections.singletonList("bar: int, baz: str"); final List<String[]> highlighted = Collections.singletonList(new String[]{"bar: int, "}); feignCtrlP(offset).check(texts, highlighted, Collections.singletonList(ArrayUtilRt.EMPTY_STRING_ARRAY)); } final List<String> texts1 = Collections.singletonList("bar: int, baz: str, foo: int"); final List<String[]> highlighted1 = Collections.singletonList(new String[]{"bar: int, "}); feignCtrlP(test.get("<arg5>").getTextOffset()).check(texts1, highlighted1, Collections.singletonList(ArrayUtilRt.EMPTY_STRING_ARRAY)); final List<String> texts2 = Collections.singletonList("names: list[str], ages: list[int]"); final List<String[]> highlighted2 = Collections.singletonList(new String[]{"names: list[str], "}); feignCtrlP(test.get("<arg6>").getTextOffset()).check(texts2, highlighted2, Collections.singletonList(ArrayUtilRt.EMPTY_STRING_ARRAY)); final List<String> texts3 = Collections.singletonList("bar: int, baz: str = \"\""); final List<String[]> highlighted3 = Collections.singletonList(new String[]{"bar: int, "}); feignCtrlP(test.get("<arg7>").getTextOffset()).check(texts3, highlighted3, Collections.singletonList(ArrayUtilRt.EMPTY_STRING_ARRAY)); }