code: @Nullable
      public static Drawable tint(Context context, @DrawableRes int drawableId, @AttrRes int attrId) {
          Drawable d = context.getDrawable(drawableId);
          if (d != null) {
              d.setTint(Themes.getColor(context, attrId));
          }
          return d;
      }
docs: Tint the Drawable with the color specified by the attribute in the Context's theme.
  
  @return null if the drawable does not exist
  @since 4.0.0