code: private void init(@Nullable AttributeSet attrs, int defStyleAttr) {
          // Get the mention span config from custom attributes
          mentionSpanConfig = parseMentionSpanConfigFromAttributes(attrs, defStyleAttr);
  
          // Must set movement method in order for MentionSpans to be clickable
          setMovementMethod(MentionsMovementMethod.getInstance());
  
          // Use MentionsEditable instead of default Editable
          setEditableFactory(MentionsEditableFactory.getInstance());
  
          // Start watching itself for text changes
          addTextChangedListener(mInternalTextWatcher);
  
          // Use default MentionSpanFactory initially
          mentionSpanFactory = new MentionSpanFactory();
      }
docs: Initialization method called by all constructors.