Added logic to detect whether comments or the enum begin should be written in component_base.ftl and renderer_base.ftl.