public static IconCompat createWithResource(Context context, @DrawableRes int resId) {
        if (context == null) {
            throw new IllegalArgumentException("Context must not be null.");
        }
        return createWithResource(context.getResources(), context.getPackageName(), resId);
    }
Create an Icon pointing to a drawable resource.

@param context The context for the application whose resources should be used to resolve the
               given resource ID.
@param resId   ID of the drawable resource
@see Icon#createWithResource(Context, int)
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/IconCompat.java