String (@NotNull List<String> requests, @NotNull YAMLKeysSearchEverywhereContributor contributor) { StringBuilder builder = new StringBuilder(); for (String request : requests) { addRequestToResult(builder, request); ContributorSearchResult<YAMLKeyNavigationItem> result = contributor.search(request, new MockProgressIndicator(), 15); ContributorSearchResult<YAMLKeyNavigationItem> result2 = contributor.search(request, new MockProgressIndicator(), 15); assertEquals(result2.getItems(), result.getItems()); for (YAMLKeyNavigationItem item : result.getItems()) { item.navigate(true); PsiElement element = myFixture.getElementAtCaret(); assert(element instanceof YAMLPsiElement); String fullName = YAMLUtil.getConfigFullName((YAMLPsiElement)element); builder.append(fullName); builder.append('\n'); } } return builder.toString(); }