code: public static List<AccessibilityViewCheckResult> checkViewIfCheckingEnabled(View view) {
      AccessibilityChecks classChecksAnnotation = getAnnotation();
      if (!isAccessibilityCheckingEnabled(classChecksAnnotation)) {
        return Collections.emptyList();
      }
  
      return checkView(view);
    }
docs: Check a hierarchy of {@code View}s for accessibility. Only performs checks if (in decreasing
  priority order) accessibility checking is enabled using an {@link AccessibilityChecks}
  annotation, if the system property {@code robolectric.accessibility.enablechecks} is set to
  {@code true}, or if the environment variable {@code robolectric.accessibility.enablechecks}
  is set to {@code true}.
  
  @param view The {@code View} to examine
  
  @return A list of results from the check. If there are no results or checking is disabled,
  the list is empty.