void () { TreeSpeedSearch.installOn(this, false, treePath -> { Object node = treePath.getLastPathComponent(); if (!(node instanceof CheckedTreeNode)) return ""; Object data = ((CheckedTreeNode)node).getUserObject(); if (!(data instanceof ArtifactDependencyNode)) return ""; Artifact artifact = ((ArtifactDependencyNode)data).getArtifact(); return artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion(); }); }