List<GotoRelatedItem> (@NotNull Collection<? extends PsiElement> elements, @Separator String group) { List<GotoRelatedItem> items = new ArrayList<>(elements.size()); for (PsiElement element : elements) { items.add(new GotoRelatedItem(element, group)); } return items; }