void (@NotNull Runnable runnable) { boolean wasEnabled = isEnabled(); Registry.get("cache.highlighting.markup.on.disk").setValue(true); try { runnable.run(); } finally { Registry.get("cache.highlighting.markup.on.disk").setValue(wasEnabled); } }