We are currently developing a plugin in intellij and we implemented a custom FoldingBuilder which extends the FoldingBuilderEx and it creates Folding Regions for code blocks starting with "// &begin" and end with "// &end ".
It works fine but the problem is that Intellij also add FoldingRegions on its own by default which create FoldingRegions for multiple comment lines e.g
(//this is a normal comment
Some code here
In this example Intellij overrides our custom FoldingRegions.
Is there any way to prevent intellij overriding our FoldingRegions ?
without adjacent comments