docs: public static <K, V> void validateConfiguredTypes(CacheConfig cacheConfig, K key, V value) throws ClassCastException {
          Class keyType = cacheConfig.getKeyType();
          Class valueType = cacheConfig.getValueType();
          validateConfiguredKeyType(keyType, key);
          validateConfiguredValueType(valueType, value);
      }