code: private void obtainPreviewBorderColor(@NonNull final TypedArray typedArray) {
          int defaultValue = ContextCompat.getColor(getContext(),
                  R.color.color_picker_preference_default_preview_border_color);
          setPreviewBorderColor(typedArray
                  .getColor(R.styleable.AbstractColorPickerPreference_previewBorderColor,
                          defaultValue));
      }
docs: Obtains the border color of the preview of the preference's color from a specific typed
  array.
  
  @param typedArray
  The typed array, the border color should be obtained from, as an instance of the
  class {@link TypedArray}. The typed array may not be null