class ParamStringProcessor {

    Map<String, String> getNameToCommentMapping(ConstructorDoc constructorDoc) {
        ImmutableMap.Builder<String, String> nameToCommentMapping = ImmutableMap.builder();
        Tag[] params = constructorDoc.tags("@param");
        for (Tag param: params) {
            String[] text = param.text().split(" ", 2);
            String snakeCaseParamName = toLowerUnderscore(text[0]);
            String paramComment = text[1].trim();
            nameToCommentMapping.put(snakeCaseParamName, paramComment);
        }
        return nameToCommentMapping.build();
    }

}