LeafElement (@NotNull LeafElement original, @NotNull String text) { LeafElement element = ASTFactory.leaf(original.getElementType(), text); original.copyCopyableDataTo(element); encodeInformation(element, original); TreeUtil.clearCaches(element); saveIndentationToCopy(original, element); return element; }