docs: public void assertIsMainThread(final String label) {
          final boolean mainThread = isMainThread();
          Log.d(TAG, "%s: is main thread: %b", label, mainThread);
          if (!mainThread) {
              throw new RuntimeException(
                      "Main thread code run on another thread: "
                              + Thread.currentThread().getName());
          }
      }