private static @Nullable <N extends DefaultMutableTreeNode> N getChildSafe(@NotNull N node, int i) {
      return node.getChildCount() <= i ? null : getChild(node, i);
    }
private static @Nullable <N extends DefaultMutableTreeNode> N getChildSafe(@NotNull N node, int i)