code: @NonNull
      public static SpannableString getColorText(@NonNull CharSequence content, int start, int end, @ColorInt int color) {
          SpannableString stringSpan = new SpannableString(content);
          stringSpan.setSpan(new ForegroundColorSpan(color), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
          return stringSpan;
      }
docs: Change part of the color of CharSequence.
  
  @param content content text.
  @param start   start index.
  @param end     end index.
  @param color   color.
  @return {@code SpannableString}.