void (@NotNull FileType fileType, @NotNull PluginDescriptor pluginDescriptor) { ApplicationManager.getApplication().runWriteAction(() -> { fireBeforeFileTypesChanged(); unregisterFileTypeWithoutNotification(fileType); myStandardFileTypes.remove(fileType.getName()); if (fileType instanceof LanguageFileType) { Language language = ((LanguageFileType)fileType).getLanguage(); if (fileType.getClass().getClassLoader().equals(language.getClass().getClassLoader())) { language.unregisterLanguage(pluginDescriptor); } } fireFileTypesChanged(null, fileType); }); }