public static @NotNull TreeElement copyElement(@NotNull TreeElement original, CharTable table) {
    CompositeElement treeParent = original.getTreeParent();
    return copyElement(original, treeParent == null ? null : treeParent.getPsi(), table);
  }
public static @NotNull TreeElement copyElement(@NotNull TreeElement original, CharTable table)