      */
     public func insertExistingMentions(_ existingMentions: [(CreateMention, NSRange)]) {
         mentions = mentions |> insert(existingMentions)
-        let (text, selectedRange) = mentionsTextView.attributedText |> apply(attributes: mentionTextAttributes,
-                                                                             to: existingMentions)
+
+        let (text, selectedRange) = mentionsTextView.attributedText
+            |> apply(attributes: mentionTextAttributes, to: existingMentions)
         mentionsTextView.attributedText = text
         mentionsTextView.selectedRange = selectedRange
     }

    private func clearMention() -> (Mention?) -> Bool {
        return { mention in
            guard let mention = mention else { return false }
            self.mentions = self.mentions |> remove([mention])
            let (text, selectedRange) = self.mentionsTextView.attributedText
                |> apply(self.defaultTextAttributes, range: mention.range)
            self.mentionsTextView.attributedText = text

     */
    @discardableResult public func addMention(_ createMention: CreateMention) -> Bool {
        guard let currentMentionRange = currentMentionRange else { return false }

        mentions = mentions |> add(createMention, spaceAfterMention: spaceAfterMention, at: currentMentionRange)

        let (text, selectedRange) = mentionsTextView.attributedText
            |> add(createMention, spaceAfterMention: spaceAfterMention, at: currentMentionRange, with: mentionTextAttributes)
        mentionsTextView.attributedText = text
        mentionsTextView.selectedRange = selectedRange

        mentionEnabled = false
        filterString = nil
