text:   
  export class Utils{
       static getSpeakersActor = function () {
          const speaker = ChatMessage.getSpeaker();
          let actor;
          // if a token is selected take it as target actor
          if (speaker.token) actor = game.actors.tokens[speaker.token];
          // otherwise take the default actor for current user
          if (!actor) actor = game.actors.get(speaker.actor);
          return actor;
      }
  }