code: public static void checkCollectionConfig(CollectionConfig collectionConfig,
                                               SplitBrainMergePolicyProvider mergePolicyProvider) {
          checkMergePolicy(collectionConfig, mergePolicyProvider, collectionConfig.getMergePolicyConfig().getPolicy());
      }
docs: Validates the given {@link CollectionConfig}.
  
  @param collectionConfig    the {@link CollectionConfig} to check
  @param mergePolicyProvider the {@link SplitBrainMergePolicyProvider} to resolve merge policy classes