void (TreePath path, @NotNull Runnable runnable) { invokeSafely(() -> { Assert.assertNotNull(path); Assert.assertTrue(getTree().isVisible(path)); getTree().addSelectionPath(path); runnable.run(); }); }