PsiElement[] (Collection<? extends Pair<PsiElement, BreadcrumbsProvider>> pairs) { PsiElement[] elements = new PsiElement[pairs.size()]; int index = 0; for (Pair<PsiElement, BreadcrumbsProvider> pair : pairs) { elements[index++] = pair.first; } return elements; }