public final boolean isBooleanNode() {
        return getType() == NodeType.BOOLEAN;
    }
Checks if this node is a boolean type.

@return Returns true if this node is a boolean type.
smithy-model/src/main/java/software/amazon/smithy/model/node/Node.java