TreeSpeedSearch (@NotNull JTree tree, boolean canExpand, @NotNull Function<? super TreePath, String> presentableStringFunction) { TreeSpeedSearch search = new TreeSpeedSearch(tree, canExpand, null, presentableStringFunction); search.setupListeners(); return search; }