Set<MetricEvent> (@NotNull Project project) { final Set<String> facets = new HashSet<>(); for (Module module : ModuleManager.getInstance(project).getModules()) { for (Facet facet : FacetManager.getInstance(module).getAllFacets()) { facets.add(facet.getType().getStringId()); } } return ContainerUtil.map2Set( facets, facet -> MODULE.metric(FACET_TYPE.with(facet)) ); }