void (@NotNull KeyedLazyInstance<FoldingBuilder> extension, @NotNull PluginDescriptor pluginDescriptor) { // Asynchronously update foldings when an extension is added for (FileEditor fileEditor : FileEditorManager.getInstance(project).getAllEditors()) { if (fileEditor instanceof TextEditor) { scheduleAsyncFoldingUpdate(((TextEditor)fileEditor).getEditor()); } } }