void (FileType type, List<? extends FileNameMatcher> defaultAssociations) { ApplicationManager.getApplication().runWriteAction(() -> { fireBeforeFileTypesChanged(); registerFileTypeWithoutNotification(type, detectPluginDescriptor(type).pluginDescriptor, defaultAssociations, true); fireFileTypesChanged(type, null); }); }