private static void editFileType(@Nullable Project project, @NotNull FileType fileType) {
    ShowSettingsUtil.getInstance().showSettingsDialog(project,
      configurable -> configurable instanceof SearchableConfigurable && ((SearchableConfigurable)configurable).getId().equals("preferences.fileTypes"),
      configurable -> {
        if (configurable instanceof ConfigurableWrapper) {
          configurable = (Configurable)((ConfigurableWrapper)configurable).getConfigurable();
        }
        FileTypeSelectable fileTypeSelectable = (FileTypeSelectable)configurable;
        fileTypeSelectable.selectFileType(fileType);
      });
  }
private static void editFileType(@Nullable Project project, @NotNull FileType fileType)