private static int getChildIndent(JTree tree) {
    TreeUI newUI = tree.getUI();
    if (newUI instanceof BasicTreeUI btreeui) {
      return btreeui.getLeftChildIndent() + btreeui.getRightChildIndent();
    }
    else {
      return ((Integer)UIUtil.getTreeLeftChildIndent()).intValue() + ((Integer)UIUtil.getTreeRightChildIndent()).intValue();
    }
  }
private static int getChildIndent(JTree tree)