TreeElement (@NotNull TreeElement original, PsiElement context, CharTable table) { TreeElement element = (TreeElement)original.clone(); PsiManager manager = original.getManager(); DummyHolderFactory.createHolder(manager, element, context, table).getTreeElement(); encodeInformation(element, original); TreeUtil.clearCaches(element); saveIndentationToCopy(original, element); return element; }