`checkNotNull(resource, "resource");`