docs: public static void checkEvictionConfig(EvictionPolicy evictionPolicy, String comparatorClassName, Object comparator,
                                             boolean isNearCache) {
          if (comparatorClassName != null && comparator != null) {
              throw new IllegalArgumentException("Only one of the `comparator class name` and `comparator`"
                      + " can be configured in the eviction configuration!");
          }
          if (!isNearCache && !SUPPORTED_EVICTION_POLICIES.contains(evictionPolicy)) {
              if (isNullOrEmpty(comparatorClassName) && comparator == null) {
  
                  String msg = format("Eviction policy `%s` is not supported. Either you can provide a custom one or "
                          + "can use one of the supported: %s.", evictionPolicy, SUPPORTED_EVICTION_POLICIES);
  
                  throw new IllegalArgumentException(msg);
              }
          } else {
              if (evictionPolicy != EvictionConfig.DEFAULT_EVICTION_POLICY) {
                  if (!isNullOrEmpty(comparatorClassName)) {
                      throw new IllegalArgumentException(
                              "Only one of the `eviction policy` and `comparator class name` can be configured!");
                  }
                  if (comparator != null) {
                      throw new IllegalArgumentException("Only one of the `eviction policy` and `comparator` can be configured!");
                  }
              }
          }
      }