spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java
public void setMentionSpanFactory(@NonNull final MentionsEditText.MentionSpanFactory factory) {
        if (mMentionsEditText != null) {
            mMentionsEditText.setMentionSpanFactory(factory);
        }
    }
public void setMentionSpanFactory(@NonNull final MentionsEditText.MentionSpanFactory factory) {
        if (mMentionsEditText != null) {
            mMentionsEditText.setMentionSpanFactory(factory);
        }
    }
Sets the factory used to create MentionSpans within this class.

@param factory the {@link MentionsEditText.MentionSpanFactory} to use