void () { TreeSpeedSearch.installOn(this, true, o -> { Object object = ((DefaultMutableTreeNode)o.getLastPathComponent()).getUserObject(); if (object instanceof TemplateGroup) { return ((TemplateGroup)object).getName(); } if (object instanceof TemplateImpl template) { return StringUtil.notNullize(template.getGroupName()) + " " + StringUtil.notNullize(template.getKey()) + " " + StringUtil.notNullize(template.getDescription()) + " " + template.getTemplateText(); } return ""; }).setComparator(new SubstringSpeedSearchComparator()); }