Collection<FacetInfo> (final FacetType<?,?> type) { final Module selectedModule = getSelectedModule(); if (selectedModule == null) return Collections.emptyList(); final FacetModel facetModel = getFacetConfigurator().getFacetModel(selectedModule); final Collection<? extends Facet> facets = facetModel.getFacetsByType(type.getId()); final ArrayList<FacetInfo> infos = new ArrayList<>(); for (Facet facet : facets) { final FacetInfo facetInfo = getFacetConfigurator().getFacetInfo(facet); if (facetInfo != null) { infos.add(facetInfo); } } return infos; }