code: private void obtainColor(@NonNull final TypedArray typedArray) {
          int defaultColor = ContextCompat.getColor(getContext(), R.color.chip_color_light);
          setColor(typedArray.getColor(R.styleable.Chip_android_color, defaultColor));
      }
docs: Obtains the chip's color from a specific typed array.
  
  @param typedArray
  The typed array, the color should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null