void (@NotNull Map<? super String, ? super String> info) { TreePath[] selection = getSelectionPaths(); if (selection == null) return; StringBuilder nodesText = new StringBuilder(); for (TreePath eachPath : selection) { Object eachNode = eachPath.getLastPathComponent(); Component c = getCellRenderer().getTreeCellRendererComponent(this, eachNode, false, false, false, getRowForPath(eachPath), false); if (c != null) { if (nodesText.length() > 0) { nodesText.append(";"); } nodesText.append(c); } } if (nodesText.length() > 0) { info.put("selectedNodes", nodesText.toString()); } }