private String fetchTypesPackageName(final Token token, final Ir ir)
    {
        if (!shouldSupportTypesPackageNames)
        {
            return ir.applicableNamespace();
        }

        if (token.packageName() != null)
        {
            return token.packageName();
        }

        return ir.applicableNamespace();
    }
Generate the stubs for the types used as message fields.

@throws IOException if an error is encountered when writing the output.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharpGenerator.java