docs: public AppEventsLogger getAppEventsLogger() {
          Session session = Session.getActiveSession();
          if (session == null) {
              return null;
          }
  
          if (appEventsLogger == null || !appEventsLogger.isValidForSession(session)) {
              if (appEventsLogger != null) {
                  // Pretend we got stopped so the old logger will persist its results now, in case we get stopped
                  // before events get flushed.
                  AppEventsLogger.onContextStop();
              }
              appEventsLogger = AppEventsLogger.newLogger(activity, session);
          }
  
          return appEventsLogger;
      }