code: @NonNull
      public static EGLConfigChooser newFailsafeEGLConfigChooser(
              final int samples,
              @Nullable final EGLConfigChooserCallback callback) {
          if (samples < 0) {
              throw new IllegalArgumentException("samples must not be negative");
          }
  
          if (samples == 0) {
              return new FailsafeRGB888ConfigChooser(callback);
          } else {
              return new FailsafeMultisamplingConfigChooser(samples, callback);
          }
      }
docs: Creates an {@link EGLConfigChooser} for given multisampling value.
  Will fallback to lower multisampling mode or no multisampling mode at all if unsupported.
  
  @param samples  multisampling mode. Must be a positive number and a power of two. May be 0 for
  no multisampling.
  @param callback the {@link EGLConfigChooserCallback} to notify with the chosen config
  @return new {@link EGLConfigChooser}  for the given parameters.