code: static <T extends GridDialect> T getDialectFacetOrNull(GridDialect gridDialect, Class<T> facetType) {
  		if ( hasFacet( gridDialect, facetType ) ) {
  			@SuppressWarnings("unchecked")
  			T asFacet = (T) gridDialect;
  			return asFacet;
  		}
  
  		return null;
  	}
docs: Returns the given dialect, narrowed down to the given dialect facet in case it is implemented by the dialect.
  
  @param gridDialect the dialect of interest
  @param facetType the dialect facet type of interest
  @return the given dialect, narrowed down to the given dialect facet or {@code null} in case the given dialect
  does not implement the given facet