public JSONObject dumpAttributes(Object obj, Point offset) throws JSONException {
    JSONObject node = new JSONObject();
    for (AttributePlugin plugin : mAttributePlugins) {
      if (plugin.accept(obj)) {
        plugin.putAttributes(node, obj, offset);
      }
    }
    return node;
  }
Dumps information about a layout hierarchy into a JSON object
core/src/main/java/com/facebook/testing/screenshot/layouthierarchy/LayoutHierarchyDumper.java