docs: public Set<String> getAssociatedGroups() {
          if (groups == null) {
              if (securityIdentity != null) {
                  groups = StreamSupport.stream(securityIdentity.getRoles().spliterator(), true).collect(Collectors.toSet());
              } else {
                  this.groups = Collections.emptySet();
              }
          }
  
          return groups;
      }