private static boolean wasEdgeChild(TreeChangeImpl treeChange, ASTNode oldChild) {
    List<ASTNode> initial = treeChange.getInitialChildren();
    return !initial.isEmpty() && (oldChild == initial.get(0) || oldChild == initial.get(initial.size() - 1));
  }
private static boolean wasEdgeChild(TreeChangeImpl treeChange, ASTNode oldChild)