void (final @NotNull FileTypeEvent event) { ThreadingAssertions.assertEventDispatchThread(); // File can be invalid after file type changing. The editor should be removed // by the FileEditorManager if it's invalid. FileType type = event.getRemovedFileType(); if (type != null && !(type instanceof AbstractFileType)) { // Plugin is being unloaded, so we need to release plugin classes immediately updateHighlightersSynchronously(); } else { updateHighlighters(); } }