code: private CharSequence getCharSequenceFromIntent(@NonNull final Intent intent,
                                                     @NonNull final String name) {
          CharSequence charSequence = intent.getCharSequenceExtra(name);
  
          if (charSequence == null) {
              int resourceId = intent.getIntExtra(name, 0);
  
              if (resourceId != 0) {
                  charSequence = getText(resourceId);
              }
          }
  
          return charSequence;
      }
docs: Returns the char sequence, which is specified by a specific intent extra. The char sequence
  can either be specified as a string or as a resource id.
  
  @param intent
  The intent, which specifies the char sequence, as an instance of the class {@link
  Intent}. The intent may not be null
  @param name
  The name of the intent extra, which specifies the char sequence, as a {@link String}.
  The name may not be null
  @return The char sequence, which is specified by the given intent, as an instance of the
  class {@link CharSequence} or null, if the intent does not specify a char sequence with the
  given name