function detectUseNative() {
  return lf.Flags.NATIVE_ES6 || lf.Capability.get().nativeSet;
}
@return {boolean} True if the native Set implementation should be used, false
    if the polyfill should be used.