docs: @SuppressLint("NewApi")
      @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
      public android.bluetooth.le.ScanSettings toNativeSettings(ScanSettings scanSettings) {
          final android.bluetooth.le.ScanSettings.Builder builder = new android.bluetooth.le.ScanSettings.Builder();
          if (deviceSdk >= Build.VERSION_CODES.M) {
              setMarshmallowSettings(scanSettings, builder);
          }
          return builder
                  .setReportDelay(scanSettings.getReportDelayMillis())
                  .setScanMode(scanSettings.getScanMode())
                  .build();
      }