public static AccessibilityRole fromValue(String value) {
      for (AccessibilityRole role : AccessibilityRole.values()) {
        if (role.getValue() != null && role.getValue().equals(value)) {
          return role;
        }
      }
      return AccessibilityRole.NONE;
    }
These roles are defined by Google's TalkBack screen reader, and this list should be kept up to
date with their implementation. Details can be seen in their source code here:

<p>https://github.com/google/talkback/blob/master/utils/src/main/java/Role.java
core/src/main/java/com/facebook/testing/screenshot/layouthierarchy/AccessibilityUtil.java