docs: private static Principal getPrimaryPrincipal(final PrincipalElectionStrategy principalElectionStrategy,
                                                   final Set<Authentication> authentications,
                                                   final Map<String, List<Object>> principalAttributes) {
          return principalElectionStrategy.nominate(new LinkedHashSet<>(authentications), principalAttributes);
      }