docs: public static int getColor(@NonNull final Context context, @StyleRes final int themeResourceId,
                                 @AttrRes final int resourceId) {
          TypedArray typedArray = null;
  
          try {
              typedArray = obtainStyledAttributes(context, themeResourceId, resourceId);
              int color = typedArray.getColor(0, -1);
  
              if (color == -1) {
                  int id = typedArray.getResourceId(0, -1);
                  color = ContextCompat.getColor(context, id);
  
                  if (color == 0) {
                      throw new NotFoundException(
                              "Resource ID #0x" + Integer.toHexString(resourceId) + " is not valid");
                  }
              }
  
              return color;
          } finally {
              if (typedArray != null) {
                  typedArray.recycle();
              }
          }
      }