final List<Pair<String, Icon>> all = ContainerUtil.map(variants, new Function<Object, Pair<String, Icon>>() {
public Pair<String, Icon> fun(final Object s) {
return Pair.create(ElementPresentationManager.getElementName(s), ElementPresentationManager.getIcon(s));
}
});
all.addAll(ContainerUtil.map(resolvingConverter.getAdditionalVariants(context), new Function() {
public Object fun(final Object s) {
return new Pair(s, null);
}
}));
return all;