code: public void setMentionSpanFactory(@NonNull final MentionsEditText.MentionSpanFactory factory) {
          if (mMentionsEditText != null) {
              mMentionsEditText.setMentionSpanFactory(factory);
          }
      }
docs: Sets the factory used to create MentionSpans within this class.
  
  @param factory the {@link MentionsEditText.MentionSpanFactory} to use