public static LayoutHierarchyDumper createWith(
      List<HierarchyPlugin> hierarchyPlugins, List<AttributePlugin> attributePlugins) {
    final List<HierarchyPlugin> allHierarchyPlugins = new ArrayList<>(hierarchyPlugins.size() + 1);
    allHierarchyPlugins.addAll(hierarchyPlugins);
    allHierarchyPlugins.addAll(sGlobalHierarchyPlugins);
    allHierarchyPlugins.add(BaseViewHierarchyPlugin.getInstance());

    final List<AttributePlugin> allAttributePlugins = new ArrayList<>(attributePlugins.size() + 1);
    allAttributePlugins.add(BaseViewAttributePlugin.getInstance());
    allAttributePlugins.addAll(attributePlugins);
    allAttributePlugins.addAll(sGlobalAttributePlugins);

    return createWithOnly(allHierarchyPlugins, allAttributePlugins);
  }
Dumps information about a layout hierarchy into a JSON object
core/src/main/java/com/facebook/testing/screenshot/layouthierarchy/LayoutHierarchyDumper.java