StubBasedPsiElementBase (@NotNull CompositeElement treeElementClone) { StubBasedPsiElementBase clone = (StubBasedPsiElementBase)super.clone(); clone.setNode(treeElementClone); treeElementClone.setPsi(clone); return clone; }