private void doRegisterFileType(FileType type, List<? extends FileNameMatcher> defaultAssociations) {
    PluginAdvertiserExtensionsStateService pluginAdvertiserExtensionsStateService =
      PluginAdvertiserExtensionsStateService.Companion.getInstance();

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