I would recommend you use the Spigot API, in my opinion this is the best
Both APIs support only one comment in the configuration header section. If you want to save more than one comment, you must encode your own YAMLConfiguration
To keep this title you should try
getConfig().options().header("Your Comment");
getConfig().options().copyHeader(true)
\n