Component (@NotNull JTree tree, @Nullable TreePath path) { return tree.getCellRenderer().getTreeCellRendererComponent( tree, TreeUtil.getLastUserObject(path), false, false, true, tree.getRowForPath(path), false ); }