code: @Override
      public void onPopulateAccessibilityEvent(@NonNull AccessibilityEvent event) {
          super.onPopulateAccessibilityEvent(event);
          List<CharSequence> textList = event.getText();
          CharSequence mentionLessText = getTextWithoutMentions();
          for (int i = 0; i < textList.size(); i++) {
              CharSequence text = textList.get(i);
              if (text instanceof MentionsEditable) {
                  textList.set(i, mentionLessText);
              }
          }
      }
docs: Populate an {@link AccessibilityEvent} with information about this text view. Note that this implementation uses
  a copy of the text that is explicitly not an instance of {@link MentionsEditable}. This is due to the fact that
  AccessibilityEvent will use the default system classloader when unparcelling the data within the event. This
  results in a ClassNotFoundException. For more details, see: https://github.com/linkedin/Spyglass/issues/10
  
  @param event the populated AccessibilityEvent