code: public static int color(ColorHolder colorHolder, Context ctx, @AttrRes int colorStyle, @ColorRes int colorDefault) {
          if (colorHolder == null) {
              return UIUtils.getThemeColorFromAttrOrRes(ctx, colorStyle, colorDefault);
          } else {
              return colorHolder.color(ctx, colorStyle, colorDefault);
          }
      }
docs: a small static helper class to get the color from the colorHolder or from the theme or from the default color value
  
  @param colorHolder
  @param ctx
  @param colorStyle
  @param colorDefault
  @return