public boolean isStatic() {
        for (Part part : parts) {
            if (!(part instanceof Template.Literal)) {
                return false;
            }
        }
        return true;
    }
Gets if the template is static or not.

@return true if all template parts are literals, false otherwise.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/expressions/Template.java