public static ScreenshotImpl getInstance() {
    if (sInstance != null) {
      return sInstance;
    }

    synchronized (ScreenshotImpl.class) {
      if (sInstance != null) {
        return sInstance;
      }

      Instrumentation instrumentation = Registry.getRegistry().instrumentation;

      // NULLSAFE_FIXME[Not Vetted Third-Party]
      sInstance = create(instrumentation.getContext());

      return sInstance;
    }
  }
Get a singleton instance of the ScreenshotImpl
core/src/main/java/com/facebook/testing/screenshot/internal/ScreenshotImpl.java