private static void addIncompatibilities(final NodeFlagGroup nodeFlagGroup) {
        Objects.requireNonNull(nodeFlagGroup);

        for (final NodeFlag nodeFlag1 : nodeFlagGroup.getNodeFlags()) {
            for (final NodeFlag nodeFlag2 : nodeFlagGroup.getNodeFlags()) {
                if (!Objects.equals(nodeFlag1, nodeFlag2)) {
                    addIncompatibilities(nodeFlag1, nodeFlag2);
                }
            }
        }
    }
Use the shortForm for json serialisation to reduce the size of the json as trees can contain a LOT
of nodes.
stroom-core-shared/src/main/java/stroom/explorer/shared/NodeFlag.java