robot.click(tree, p, LEFT_BUTTON, toggleClickCount);
}
@RunsInEDT
private static void toggleRowThroughTreeUI(final @Nonnull JTree tree, final @Nonnull Point p) {
execute(new GuiTask() {
@Override
protected void executeInEDT() {
TreeUI treeUI = tree.getUI();
if (!(treeUI instanceof BasicTreeUI)) {
throw actionFailure(concat("Can't toggle row for ", treeUI));