public static Registry getRegistry() {
    if (sRegistry == null) {
      sRegistry = new Registry();
    }

    return sRegistry;
  }
Stores some of the static state. We bundle this into a class for easy cleanup.
core/src/main/java/com/facebook/testing/screenshot/internal/Registry.java