core/play/src/main/java/play/i18n/MessagesApi.java
public Messages preferred(Collection<Lang> candidates) {
    Seq<Lang> cs = Scala.asScala(candidates);
    play.api.i18n.Messages msgs = messages.preferred((Seq) cs);
    return new MessagesImpl(new Lang(msgs.lang()), this);
  }
public Messages preferred(Collection<Lang> candidates) {
    Seq<Lang> cs = Scala.asScala(candidates);
    play.api.i18n.Messages msgs = messages.preferred((Seq) cs);
    return new MessagesImpl(new Lang(msgs.lang()), this);
  }
Get a messages context appropriate for the given candidates.

<p>Will select a language from the candidates, based on the languages available, and fallback
to the default language if none of the candidates are available.

@param candidates the candidate languages
@return the most appropriate Messages instance given the candidate languages