private @NotNull @NlsContexts.LinkLabel String getFileTypesLinkText() {
    if (myCurrentUiState.isAllFileTypesSelected()) {
      return CodeInsightBundle.message("actions.on.save.page.label.all.file.types");
    }

    Set<String> fileTypes = myCurrentUiState.getSelectedFileTypes();

    if (fileTypes.isEmpty()) {
      return CodeInsightBundle.message("actions.on.save.page.label.select.file.types");
    }

    String fileTypeName = fileTypes.iterator().next();
    FileType fileType = FileTypeRegistry.getInstance().findFileTypeByName(fileTypeName);
    String presentableFileType = fileType != null ? fileType.getDescription() : fileTypeName;

    if (fileTypes.size() == 1) {
      return CodeInsightBundle.message("actions.on.save.page.label.one.file.type.selected", presentableFileType);
    }

    return CodeInsightBundle.message("actions.on.save.page.label.many.file.types.selected", presentableFileType, fileTypes.size() - 1);
  }
private @NotNull @NlsContexts.LinkLabel String getFileTypesLinkText()