private void onFileTypePopupClosed(@NotNull DropDownLink<String> link, @NotNull CheckedTreeNode root) {
    Options options = myCurrentUiState;

    if (root.isChecked()) {
      options.setRunForAllFileTypes();
    }
    else {
      Collection<FileType> fileTypes = new ArrayList<>();
      Enumeration<TreeNode> fileTypesEnum = root.children();
      while (fileTypesEnum.hasMoreElements()) {
        CheckedTreeNode node = (CheckedTreeNode)fileTypesEnum.nextElement();
        if (node.isChecked()) {
          fileTypes.add((FileType)node.getUserObject());
        }
      }

      options.setRunForSelectedFileTypes(fileTypes);
    }

    link.setText(getFileTypesLinkText());
  }
private void onFileTypePopupClosed(@NotNull DropDownLink<String> link, @NotNull CheckedTreeNode root)