private @NotNull CheckboxTree createFileTypesCheckboxTree(@NotNull CheckedTreeNode root) {
    CheckboxTree tree = new CheckboxTree(createFileTypesRenderer(), root) {
      @Override
      protected void installSpeedSearch() {
        TreeSpeedSearch.installOn(this, false, path -> {
          final CheckedTreeNode node = (CheckedTreeNode)path.getLastPathComponent();
          final Object userObject = node.getUserObject();
          if (userObject instanceof FileType) {
            return ((FileType)userObject).getDescription();
          }
          return userObject.toString();
        });
      }
    };

    tree.setRootVisible(true);
    tree.setSelectionRow(0);

    resetTree(root);

    return tree;
  }
private @NotNull CheckboxTree createFileTypesCheckboxTree(@NotNull CheckedTreeNode root)