public static void generateOptionDecodeJavadoc(final Appendable out, final String indent, final Token optionToken)
        throws IOException
    {
        final String description = optionToken.description();
        if (Strings.isEmpty(description))
        {
            return;
        }

        out.append(indent).append("/**\n")
            .append(indent).append(" * ");

        escapeJavadoc(out, description);

        out.append('\n')
            .append(indent).append(" *\n")
            .append(indent).append(" * @return true if ").append(optionToken.name()).append(" set or false if not.\n")
            .append(indent).append(" */\n");
    }
Generate the Javadoc comment header for a bitset choice option decode method.

@param out         to append to.
@param indent      level for the comment.
@param optionToken for the type.
@throws IOException on failing to write to output.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/java/JavaUtil.java