public @NotNull List<FacetType<?, ?>> getFacetTypes() {
    String @NotNull [] facetIds = getFacetIds();
    if (facetIds.length == 0) {
      return emptyList();
    }

    List<FacetType<?, ?>> result = new ArrayList<>(facetIds.length);
    FacetTypeRegistry facetTypeRegistry = FacetTypeRegistry.getInstance();
    for (String facetId : facetIds) {
      FacetType<?, ?> o = facetTypeRegistry.findFacetType(facetId);
      if (o != null) {
        result.add(o);
      }
    }
    return result.isEmpty() ? emptyList() : result;
  }
public @NotNull List<FacetType<?, ?>> getFacetTypes()