void (@NotNull JTree tree, @Nullable TreePath path) { assert EventQueue.isDispatchThread(); Rectangle bounds = tree.getPathBounds(path); if (bounds != null) tree.repaint(0, bounds.y, tree.getWidth(), bounds.height); }