void () { List<UiInterceptor<?>> interceptors = new ArrayList<>(ourInterceptors); ourInterceptors.clear(); if (!interceptors.isEmpty()) { throw new IllegalStateException("Expected UI was not shown: " + interceptors); } }