code: private boolean hasPublisherWithMerkleTreeSync(Config config, String wanReplicationRefName) {
          WanReplicationConfig replicationConfig = config.getWanReplicationConfig(wanReplicationRefName);
          if (replicationConfig != null) {
              for (WanPublisherConfig publisherConfig : replicationConfig.getWanPublisherConfigs()) {
                  if (publisherConfig.getWanSyncConfig() != null
                          && ConsistencyCheckStrategy.MERKLE_TREES.equals(publisherConfig.getWanSyncConfig()
                          .getConsistencyCheckStrategy())) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Returns {@code true} if at least one of the WAN publishers has
  Merkle tree consistency check configured for the given WAN
  replication configuration
  
  @param config                configuration
  @param wanReplicationRefName The name of the WAN replication
  @return {@code true} if there is at least one publisher has Merkle
  tree configured