public static boolean isValidIdentifier(CharSequence identifier) {
        return parseIdentifier(identifier, 0) == identifier.length();
    }
Checks if the given string is a valid identifier.

@param identifier Identifier value to check.
@return Returns true if this is a valid identifier.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/ShapeId.java