Collection<FacetInfo> (final FacetType<?, ?> type) { final FacetInfo[] facetInfos = getFacetInfos(); List<FacetInfo> infos = new ArrayList<>(); for (FacetInfo facetInfo : facetInfos) { if (facetInfo.getFacetType().equals(type)) { infos.add(facetInfo); } } return infos; }