void (@NotNull IElementType leafType, @NotNull CharSequence leafText, ASTNode anchorBefore) { FileElement holder = new DummyHolder(getManager(), null).getTreeElement(); LeafElement leaf = ASTFactory.leaf(leafType, holder.getCharTable().intern(leafText)); CodeEditUtil.setNodeGenerated(leaf, true); holder.rawAddChildren(leaf); addChild(leaf, anchorBefore); }