code: public static boolean checkMergePolicySupportsInMemoryFormat(String name, Object mergePolicy, InMemoryFormat inMemoryFormat,
              boolean failFast, ILogger logger) {
          if (inMemoryFormat != NATIVE) {
              return true;
          }
          if (mergePolicy instanceof SplitBrainMergePolicy) {
              return true;
          }
          if (failFast) {
              throw new InvalidConfigurationException(createSplitRecoveryWarningMsg(name, mergePolicy.getClass().getName()));
          }
          logger.warning(createSplitRecoveryWarningMsg(name, mergePolicy.getClass().getName()));
          return false;
      }
docs: Checks if the given {@link InMemoryFormat} can be merged by the given
  {@code mergePolicy} instance.
  <p>
  When a wrong policy is detected, it does one of two things:
  if {@code failFast} is {@code true} and the cluster version is 3.10 or later,
  it throws an {@link InvalidConfigurationException}, otherwise it logs a warning.
  
  @return {@code true} if the given {@code inMemoryFormat} can be merged by
  the supplied {@code mergePolicy}, {@code false} otherwise