docs: private Collection<String> convertToGroups(List<? extends GrantedAuthority> authorities) {
          List<String> groups = new ArrayList<String>();
          for (GrantedAuthority authority : authorities) {
              groups.add(authority.getAuthority());
          }
          return groups;
      }