boolean (final FacetInfo facet, FacetTypeId typeId) { final Module selectedModule = getSelectedModule(); if (selectedModule == null) { return false; } final FacetTreeModel facetTreeModel = getFacetConfigurator().getTreeModel(selectedModule); return facetTreeModel.hasFacetOfType(facet, typeId); }