public FieldPrecedenceModel createCodecModel(
        final String stateClassName,
        final List<Token> msgTokens
    )
    {
        return createModel(stateClassName, msgTokens, Function.identity());
    }
Creates a {@link FieldPrecedenceModel} for the given message tokens,
unless precedence checks are disabled, in which case {@code null} is returned.
<p>
All versions of the message are considered when creating the model.
</p>

@param stateClassName the name of the generated class that models the state of the codec.
@param msgTokens the tokens of the message.
@return a {@link FieldPrecedenceModel} for the given message tokens or {@code null} if precedence checks
are disabled.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/common/PrecedenceChecks.java