shadows/framework/src/main/java/org/robolectric/android/AccessibilityUtil.java
public static void setRunChecksForRobolectricVersion(ForRobolectricVersion forVersion) {
    initializeValidator();
    if (forVersion != null) {
      validator.setCheckPreset(convertRoboVersionToA11yTestVersion(forVersion));
      forVersionSet = true;
    } else {
      forVersionSet = false;
    }
  }
public static void setRunChecksForRobolectricVersion(ForRobolectricVersion forVersion) {
    initializeValidator();
    if (forVersion != null) {
      validator.setCheckPreset(convertRoboVersionToA11yTestVersion(forVersion));
      forVersionSet = true;
    } else {
      forVersionSet = false;
    }
  }
Specify that a specific subset of accessibility checks be run. The subsets are specified based
on which Robolectric version particular checks were released with. By default, all checks are
run {@link ForRobolectricVersion}.

If you call this method, the value you pass will take precedence over any value in any
annotations.

@param forVersion The version of checks to run for. If {@code null}, throws away the current
value and falls back on the annotation or default.