public static Scheduler getUiThreadScheduler() { return shadowOf(Looper.getMainLooper()).getScheduler(); }
public static void assertMainThread() { if (Looper.myLooper() != Looper.getMainLooper()) { throw new RuntimeException(); } }