void (FoldingBuilder builder, Runnable task) { LanguageFolding.INSTANCE.addExplicitExtension(PlainTextLanguage.INSTANCE, builder); try { task.run(); } finally { LanguageFolding.INSTANCE.removeExplicitExtension(PlainTextLanguage.INSTANCE, builder); } }