@Override
        public boolean shouldAccumulate(@NonNull ChatMetaType type, @NonNull ChatMetaNode<?, ?> node, @Nullable ChatMetaNode<?, ?> current) {
            PermissionHolder.Identifier origin = node.metadata(InheritanceOriginMetadata.KEY).getOrigin();
            return origin.getType().equals(PermissionHolder.Identifier.GROUP_TYPE) && this.groupName.equals(origin.getName());
        }
Contains the standard {@link MetaStackElement}s provided by LuckPerms.
common/src/main/java/me/lucko/luckperms/common/cacheddata/metastack/StandardStackElements.java