/**
  * Analyses a PostRevision to determine which users are mentioned.
  *
  * @param PostRevision $post The Post to analyse.
  * @param \Title $title
  * @return User[] Array of User objects.
  */
 protected function getMentionedUsers($post, $title)
 {
     // At the moment, it is not possible to get a list of mentioned users from HTML
     //  unless that HTML comes from Parsoid. But VisualEditor (what is currently used
     //  to convert wikitext to HTML) does not currently use Parsoid.
     $wikitext = $post->getContent('wikitext');
     $mentions = $this->getMentionedUsersFromWikitext($wikitext);
     $notifyUsers = $this->filterMentionedUsers($mentions, $post, $title);
     return $notifyUsers;
 }