[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-jetbrains-mps-model-manipulation":3,"mdc--ue7482-key":32,"related-repo-jetbrains-mps-model-manipulation":2411,"related-org-jetbrains-mps-model-manipulation":2485},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":19,"repoUrl":20,"updatedAt":21,"license":22,"forks":23,"topics":24,"repo":27,"sourceUrl":30,"mdContent":31},"mps-model-manipulation","write and edit MPS BaseLanguage code","Use when writing or editing MPS BaseLanguage code that lives inside a model — behavior methods, typesystem rules, checking rules, generator queries, constraints, intentions, scope\u002FcanBe callbacks, dataflow builders — and combines the `smodel`, `collections`, and `closures` language extensions. Covers querying nodes (`.descendants\u003CC>`, `.ancestor\u003CC>`, `.children`, `.parent`, `containingRoot`), filtering sequences (`.where`, `.select`, `.translate`, `.ofConcept\u003CC>`), building closures (`{ it => ... }`, `yield`, recursion), creating and mutating nodes (`new node\u003CC>()`, `add new(C)`, `set new(C)`, `replace with new(C)`, `.detach`, `.copy`), property and link access (`SPropertyAccess`, `SLinkAccess`, `SLinkListAccess`), reference operations (`.reference\u002FC : role\u002F`, `.target`), null-safe node equality (`:eq:` \u002F `:ne:`), smodel\u002FJava type casts (`node:C`, `node as C`, `\u002F`, `downcast`), foreach choice, the `command` \u002F `read action` lock wrappers, and JSON blueprints for every shape the Java parser cannot produce.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"jetbrains","JetBrains","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fjetbrains.png",[12,16],{"name":13,"slug":14,"type":15},"Engineering","engineering","tag",{"name":17,"slug":18,"type":15},"Code Analysis","code-analysis",1650,"https:\u002F\u002Fgithub.com\u002FJetBrains\u002FMPS","2026-07-23T05:41:39.654518",null,311,[25,26],"domain-specific-language","dsl",{"repoUrl":20,"stars":19,"forks":23,"topics":28,"description":29},[25,26],"JetBrains Meta programming System","https:\u002F\u002Fgithub.com\u002FJetBrains\u002FMPS\u002Ftree\u002FHEAD\u002Fplugins\u002Fmcp-tools\u002Fresources\u002Fjetbrains\u002Fmps\u002Fagents\u002Fmcp\u002Fskills\u002Fmps-model-manipulation","---\nname: mps-model-manipulation\ndescription: >-\n  Use when writing or editing MPS BaseLanguage code that lives inside a model — behavior methods, typesystem rules, checking rules, generator queries, constraints, intentions, scope\u002FcanBe callbacks, dataflow builders — and combines the `smodel`, `collections`, and `closures` language extensions. Covers querying nodes (`.descendants\u003CC>`, `.ancestor\u003CC>`, `.children`, `.parent`, `containingRoot`), filtering sequences (`.where`, `.select`, `.translate`, `.ofConcept\u003CC>`), building closures (`{ it => ... }`, `yield`, recursion), creating and mutating nodes (`new node\u003CC>()`, `add new(C)`, `set new(C)`, `replace with new(C)`, `.detach`, `.copy`), property and link access (`SPropertyAccess`, `SLinkAccess`, `SLinkListAccess`), reference operations (`.reference\u002FC : role\u002F`, `.target`), null-safe node equality (`:eq:` \u002F `:ne:`), smodel\u002FJava type casts (`node:C`, `node as C`, `\u002F`, `downcast`), foreach choice, the `command` \u002F `read action` lock wrappers, and JSON blueprints for every shape the Java parser cannot produce.\ntype: reference\n---\n\n# Writing MPS BaseLanguage with smodel \u002F collections \u002F closures\n\nUse this skill when authoring code inside an MPS model where BaseLanguage is mixed with the `smodel`, `collections`, and `closures` extensions: behavior methods, checking\u002Ftypesystem\u002Fdataflow rules, generator query functions, intentions, constraints, scope\u002FcanBe callbacks. The `mps_mcp_parse_java_and_insert` parser understands only plain Java, so most non-trivial code requires hand-built node blueprints — this skill is the catalog.\n\nTo enumerate nodes\u002Finstances\u002Fusages across a **scope** (a whole project, module, model, or repository) rather than navigating from one root, add the `jetbrains.mps.lang.smodel.query` language — it supplies `#instances` \u002F `#usages` \u002F `#nodes` \u002F `#references` \u002F `#models` \u002F `#modules` and a `with (\u003Cscope>) { … }` wrapper, the same queries the MPS Console runs. Its results compose with the `smodel`\u002F`collections`\u002F`closures` operations catalogued here. See the `mps-console` skill.\n\n## Critical Directives\n\n- **Node equality uses `:eq:` and `:ne:`**, never `==` or `.equals()`. Use `NPEEqualsExpression` \u002F `NPENotEqualsExpression`. See `references\u002Fnode-equality.md`.\n- **Every `InferredClosureParameterDeclaration` needs a `type` child**, even though MPS infers the type. Use `jetbrains.mps.baseLanguage.structure.UndefinedType` as placeholder. Omitting it cascades into misleading \"different parameter numbers\" \u002F \"out of search scope\" \u002F \"operation is not applicable to null\" errors. See `references\u002Fclosures-catalog.md`.\n- **The Java parser cannot produce smodel\u002Fcollection types** in method return types, cannot parse `:Concept` casts, `.link` accesses, `.behaviorMethod()` calls, or `MetaAdapterFactory.getContainmentLink` inline. Use `LINKS.xxx`\u002F`CONCEPTS.xxx` constants and replace types post-parse. See `references\u002Fjava-parser-capabilities.md`.\n- **Mutations need `command { … }`, reads from non-UI code need `read action { … }`**. There is no separate \"write action\". Behavior methods and rule bodies already hold the right lock. See `references\u002Fconcurrent-access.md`.\n- **Pick the right cardinality**: `SLinkAccess` for `0..1` \u002F `1`; `SLinkListAccess` for `0..n` \u002F `1..n`. One pair serves both reference links and containment children (there is no `SChildAccess`\u002F`SChildListAccess`). Wrong choice triggers \"out of search scope\" \u002F \"access to link X is not expected here\". See `references\u002Fdot-expression-basics.md`.\n- **`foreach` has two concepts**: collections `ForEachStatement` for `sequence`\u002F`list`\u002F`set`, BaseLanguage `ForeachStatement` for Java arrays\u002Fiterables. Wrong choice → type error. See `references\u002Fforeach-statements.md`.\n- **Used-language imports**: NF_* operations require `jetbrains.mps.lang.actions` in the model's used languages; without it, `add new initialized(...)` etc. fail. See `references\u002Fproperty-and-mutation-ops.md` and `references\u002Fopenapi-and-dependencies.md`.\n- **Never recommend deprecated operations**: `.role` (use `.containingLink`), `.linkDeclaration` (use `.link`), `.role` on `SReference` (use `.link.name`), `.concept` `Node_GetConceptOperation` (use `node.concept` via typesystem).\n\n## Common-path workflow\n\n1. **Identify the source-of-truth layer**. If the change is to existing logic in a rule\u002Fmethod body, inspect the current node (shallow `mps_mcp_print_node`) before editing.\n2. **Prefer `parse_java_and_insert`** for plain Java method bodies, expression replacements, and field declarations on `LINKS`\u002F`CONCEPTS` inner classes. See `references\u002Fjava-parser-capabilities.md`.\n3. **For smodel\u002Fcollections\u002Fclosures constructs not parseable as Java**, build the node blueprint by hand. See:\n   - `references\u002Fdot-expression-basics.md` — the universal `DotExpression(operand, operation)` chaining pattern, closure literal blueprint, type-cast wrapping rules.\n   - `references\u002Fproperty-and-mutation-ops.md` — property reads\u002Fwrites, `add new(C)`, `replace with new(C)`, sibling inserts.\n   - `references\u002Freferences-and-queries.md` — `.ancestor\u003CC>`, `.descendants\u003CC>`, `.reference\u002FC:role\u002F`, `.target`, `.isInstanceOf`, sibling queries.\n   - `references\u002Fattribute-access.md` — the `.@` operator: read\u002Fset\u002Fremove an attribute (annotation) attached to a node and reach the children\u002Frefs\u002Fproperties it grafts on (generator macros, comments, requirement traces).\n4. **For variable declarations and method return types** of MPS collection \u002F smodel types, build the type child explicitly — `parse_java_and_insert` produces a wrong `ClassifierType` for these in return-type position. See `references\u002Fvariable-declarations.md`.\n5. **Validate** with `mps_mcp_check_root_node_problems(nodeReference, onlyNodesWithProblems=true)`. Re-read generated `source_gen\u002F...java` only to confirm runtime shape — never to apply fixes. See `references\u002Fworkflows.md`.\n6. **If imports\u002Fdependencies break**, add a used language or model dependency via `mps_mcp_model_used_language` \u002F `mps_mcp_model_dependency` \u002F `mps_mcp_module_dependency`. See `references\u002Fopenapi-and-dependencies.md`.\n\nIf MPS MCP tools are unavailable, do not hand-edit serialized `.mps` files unless explicitly requested — inspect only and report.\n\n## Related Skills\n\n- `mps-baselanguage` — host BaseLanguage statements, expressions, classes; this skill is the smodel\u002Fcollections\u002Fclosures overlay.\n- `mps-quotations` — `\u003C` … `>` quotations and antiquotations for assembling node trees inline; use instead of long blueprint chains where they apply.\n- `mps-aspect-behavior` — per-concept method authoring; behavior bodies are the most common host for this skill.\n- `mps-aspect-generator` — generator query bodies, `$IF$`\u002F`$MAP_SRC$.mapperFunction`, where this skill provides the smodel idioms.\n- `mps-aspect-typesystem` — inference and checking rule bodies; uses the same idioms.\n- `mps-aspect-constraints` — `getScope`, `canBe*`, property validators; same idiom set.\n- `mps-node-editing` — programmatic node creation and editing from outside model code (the MCP-tool side rather than smodel-language side).\n- `mps-console` — the MPS Console and the `jetbrains.mps.lang.smodel.query` language (`with`-statement, `#instances`\u002F`#usages`\u002F`#nodes`\u002F`#models`\u002F`#modules`, scopes); use it to run or generate the smodel code in this skill across a project\u002Frepository scope, or to insert console commands via `mps_mcp_insert_console_command_from_json`.\n\n## Reference Index\n\n- `references\u002Fgolden-rules-and-pitfalls.md` — read first when an error looks weird (cascade `UnknownDotCall`, \"out of search scope\", \"different parameter numbers\", `List\u003CSNode>` vs `sequence\u003Cnode\u003CX>>`); collected symptom→cause→fix table.\n- `references\u002Fjava-parser-capabilities.md` — open before calling `mps_mcp_parse_java_and_insert`. Lists what the parser handles, what it silently mis-types, and the canonical workarounds (LINKS\u002FCONCEPTS pattern, post-parse `replace_node_child`, signature widening to avoid smodel casts in arguments).\n- `references\u002Fworkflows.md` — step-by-step recipes: adding a new helper method to a checking-rule class, replacing an expression inside a rule body, interacting with `source_gen\u002F` artifacts.\n- `references\u002Fconcept-id-table.md` — `MetaAdapterFactory` hex IDs for BaseLanguage concepts and links (`ThrowStatement`, `CatchClause`, `TryCatchStatement`, `VariableReference`, etc.) plus persistent node refs for `Type`, `Expression`, `Classifier`, `SequenceType`, `ListType`, `SNodeType`.\n- `references\u002Fsmodel-concepts-catalog.md` — every smodel concept (`SNodeType`, `SLinkAccess`, `Node_GetAncestorOperation`, `OfConceptOperation`, `Concept_*Operation`, `EnumMember_*`, …) with its ID and MPS surface notation. Open when you need to pick a concept and don't remember which one.\n- `references\u002Fbaselanguage-key-concepts.md` — the small set of BaseLanguage concepts that this skill keeps reaching for (`DotExpression`, `ForeachStatement`, `BlockStatement`, `NPE*Expression`, `UndefinedType`).\n- `references\u002Fconcurrent-access.md` — `command`, `read action`, `execute command in EDT`, `undo-transparent command`. Open when writing code that reads\u002Fmutates models outside a rule or behavior body.\n- `references\u002Fcollections-catalog.md` — every `*Operation` from `jetbrains.mps.baseLanguage.collections` (`where`\u002F`select`\u002F`translate`\u002F`any`\u002F`take`\u002F`sortBy`\u002F`reduceLeft`\u002F`toList`\u002F…), the type hierarchy (`sequence` ⊃ `list`\u002F`set`; `map`), creator concepts, list\u002Fset\u002Fmap mutators, `iterator` vs `modifying_iterator`, sorted variants, lazy-vs-eager rule, and the `isEmpty`\u002F`isNotEmpty` collections-vs-baselanguage ambiguity.\n- `references\u002Fclosures-catalog.md` — `ClosureLiteral` parameters\u002Fbody shape, `InferredClosureParameterDeclaration` requirements, `FunctionType`, `InvokeFunctionOperation` vs `InvokeExpression` (recursion), `YieldStatement`, SAM conversion, generated-Java compilation form, runtime jar dependency.\n- `references\u002Fdot-expression-basics.md` — the universal `DotExpression(operand, operation)` chaining pattern; closure-literal blueprint (the reusable building block); cardinality cheat-sheet (`SLinkAccess` vs `SLinkListAccess`, one pair for both references and children); when to wrap an operand in `SNodeTypeCastExpression`; navigation blueprints (`.link`, `.parent`, `.children`, `.ancestor\u003CC>`, `.ancestors\u003CC>`, `.descendants\u003CC>` including `+` include-self form); `node:C` vs `node as C`; `expr\u002F` (`SemanticDowncastExpression`) and `downcast expr` (`DowncastExpression`) for crossing into Java APIs; `.isInstanceOf` \u002F `.isNotNull` \u002F `.isNull` \u002F `.behaviorMethod(args)`; `where` \u002F `any` \u002F `translate` \u002F `list.add` blueprints.\n- `references\u002Fproperty-and-mutation-ops.md` — read for property reads\u002Fwrites (`SPropertyAccess`, assignment, `Property_RemoveOperation`) and tree mutations (`SNodeCreator`, `add new(C)`, `set new(C)`, `replace with new(C)` \u002F `replace with(other)`, `.copy`, `.detach`, sibling inserts), including all `NF_*` factory-initialized variants and the required `jetbrains.mps.lang.actions` used-language import.\n- `references\u002Freferences-and-queries.md` — `Node_GetReferenceOperation` (`.reference\u002FC:role\u002F`), `Node_GetReferencesOperation`, `Reference_GetTargetOperation` etc.; plus query operations `.siblings`\u002F`.next-sibling`\u002F`.prev-sibling*`, `.containingRoot`\u002F`.containingLink`\u002F`.model`\u002F`.index`, `.isExactly(C)`, `seq.ofConcept\u003CC>`, `seq.ofAspect\u003Ca>`, enum-member operations.\n- `references\u002Fattribute-access.md` — the `.@` operator (`AttributeAccess` + `NodeAttributeQualifier` \u002F `LinkAttributeQualifier` \u002F `ChildAttributeQualifier` \u002F `PropertyAttributeQualifier` \u002F `AllAttributeQualifier`): read, attach\u002Freplace (assignable l-value), or remove an attribute, list semantics of `multiple` attributes (`.@role.add(...)`), and chain into the children\u002Frefs\u002Fproperties it grafts onto a node. Pairs with `mps-aspect-structure-concepts\u002Freferences\u002Fattributes-and-annotations.md` (the structure side).\n- `references\u002Flink-and-concept-literals.md` — standalone `link\u002FC : role\u002F` (`LinkIdRefExpression`, two required refs) and `concept\u002FC\u002F` (`ConceptIdRefExpression`). Open when an API needs an `SContainmentLink`\u002F`SReferenceLink`\u002F`SConcept` argument with no preceding `node.` operand; covers the distinction from `OperationParm_LinkQualifier` and `RefConcept_Reference`.\n- `references\u002Fforeach-statements.md` — the two `foreach` concepts (collections `ForEachStatement` + `ForEachVariable` \u002F `ForEachVariableReference` vs BaseLanguage `ForeachStatement` + `LocalVariableDeclaration` \u002F `VariableReference`). Open when iterating produces a typesystem error or when you need to reference the loop variable.\n- `references\u002Fnode-equality.md` — `NPEEqualsExpression` (`:eq:`) and `NPENotEqualsExpression` (`:ne:`) blueprints and when to use them.\n- `references\u002Fvariable-declarations.md` — type-child choices for locals and return types (`node\u003CC>`, `nlist\u003CC>`, `node-ptr\u003CC>`, `concept\u003CC>`, `search scope`, `enummember\u003CE>`, `sequence\u002Flist\u002Fset\u003Cnode\u003CC>>`, `boolean`); creator blueprints for `new arraylist\u003Cnode\u003CC>>` \u002F `new hashset\u003Cnode\u003CC>>` \u002F etc.; the parse-time return-type fix-up blueprints for `sequence\u003Cnode\u003CType>>` and `list\u003Cnode\u003CType>>`.\n- `references\u002Fopenapi-and-dependencies.md` — `org.jetbrains.mps.openapi.*` interfaces and threading rules (when hand-written Java calls into models); module dependencies vs model dependencies vs used languages, with failure modes (\"Concept not imported\", \"cannot resolve\", \"Class not found at runtime\") and the matching MCP tool to call.\n",{"data":33,"body":35},{"name":4,"description":6,"type":34},"reference",{"type":36,"children":37},"root",[38,47,86,187,194,657,663,946,959,965,1152,1158],{"type":39,"tag":40,"props":41,"children":43},"element","h1",{"id":42},"writing-mps-baselanguage-with-smodel-collections-closures",[44],{"type":45,"value":46},"text","Writing MPS BaseLanguage with smodel \u002F collections \u002F closures",{"type":39,"tag":48,"props":49,"children":50},"p",{},[51,53,60,62,68,70,76,78,84],{"type":45,"value":52},"Use this skill when authoring code inside an MPS model where BaseLanguage is mixed with the ",{"type":39,"tag":54,"props":55,"children":57},"code",{"className":56},[],[58],{"type":45,"value":59},"smodel",{"type":45,"value":61},", ",{"type":39,"tag":54,"props":63,"children":65},{"className":64},[],[66],{"type":45,"value":67},"collections",{"type":45,"value":69},", and ",{"type":39,"tag":54,"props":71,"children":73},{"className":72},[],[74],{"type":45,"value":75},"closures",{"type":45,"value":77}," extensions: behavior methods, checking\u002Ftypesystem\u002Fdataflow rules, generator query functions, intentions, constraints, scope\u002FcanBe callbacks. The ",{"type":39,"tag":54,"props":79,"children":81},{"className":80},[],[82],{"type":45,"value":83},"mps_mcp_parse_java_and_insert",{"type":45,"value":85}," parser understands only plain Java, so most non-trivial code requires hand-built node blueprints — this skill is the catalog.",{"type":39,"tag":48,"props":87,"children":88},{},[89,91,97,99,105,107,113,115,121,122,128,129,135,136,142,143,149,151,157,159,164,166,171,172,177,179,185],{"type":45,"value":90},"To enumerate nodes\u002Finstances\u002Fusages across a ",{"type":39,"tag":92,"props":93,"children":94},"strong",{},[95],{"type":45,"value":96},"scope",{"type":45,"value":98}," (a whole project, module, model, or repository) rather than navigating from one root, add the ",{"type":39,"tag":54,"props":100,"children":102},{"className":101},[],[103],{"type":45,"value":104},"jetbrains.mps.lang.smodel.query",{"type":45,"value":106}," language — it supplies ",{"type":39,"tag":54,"props":108,"children":110},{"className":109},[],[111],{"type":45,"value":112},"#instances",{"type":45,"value":114}," \u002F ",{"type":39,"tag":54,"props":116,"children":118},{"className":117},[],[119],{"type":45,"value":120},"#usages",{"type":45,"value":114},{"type":39,"tag":54,"props":123,"children":125},{"className":124},[],[126],{"type":45,"value":127},"#nodes",{"type":45,"value":114},{"type":39,"tag":54,"props":130,"children":132},{"className":131},[],[133],{"type":45,"value":134},"#references",{"type":45,"value":114},{"type":39,"tag":54,"props":137,"children":139},{"className":138},[],[140],{"type":45,"value":141},"#models",{"type":45,"value":114},{"type":39,"tag":54,"props":144,"children":146},{"className":145},[],[147],{"type":45,"value":148},"#modules",{"type":45,"value":150}," and a ",{"type":39,"tag":54,"props":152,"children":154},{"className":153},[],[155],{"type":45,"value":156},"with (\u003Cscope>) { … }",{"type":45,"value":158}," wrapper, the same queries the MPS Console runs. Its results compose with the ",{"type":39,"tag":54,"props":160,"children":162},{"className":161},[],[163],{"type":45,"value":59},{"type":45,"value":165},"\u002F",{"type":39,"tag":54,"props":167,"children":169},{"className":168},[],[170],{"type":45,"value":67},{"type":45,"value":165},{"type":39,"tag":54,"props":173,"children":175},{"className":174},[],[176],{"type":45,"value":75},{"type":45,"value":178}," operations catalogued here. See the ",{"type":39,"tag":54,"props":180,"children":182},{"className":181},[],[183],{"type":45,"value":184},"mps-console",{"type":45,"value":186}," skill.",{"type":39,"tag":188,"props":189,"children":191},"h2",{"id":190},"critical-directives",[192],{"type":45,"value":193},"Critical Directives",{"type":39,"tag":195,"props":196,"children":197},"ul",{},[198,262,303,367,398,475,535,575],{"type":39,"tag":199,"props":200,"children":201},"li",{},[202,221,223,229,231,237,239,245,246,252,254,260],{"type":39,"tag":92,"props":203,"children":204},{},[205,207,213,215],{"type":45,"value":206},"Node equality uses ",{"type":39,"tag":54,"props":208,"children":210},{"className":209},[],[211],{"type":45,"value":212},":eq:",{"type":45,"value":214}," and ",{"type":39,"tag":54,"props":216,"children":218},{"className":217},[],[219],{"type":45,"value":220},":ne:",{"type":45,"value":222},", never ",{"type":39,"tag":54,"props":224,"children":226},{"className":225},[],[227],{"type":45,"value":228},"==",{"type":45,"value":230}," or ",{"type":39,"tag":54,"props":232,"children":234},{"className":233},[],[235],{"type":45,"value":236},".equals()",{"type":45,"value":238},". Use ",{"type":39,"tag":54,"props":240,"children":242},{"className":241},[],[243],{"type":45,"value":244},"NPEEqualsExpression",{"type":45,"value":114},{"type":39,"tag":54,"props":247,"children":249},{"className":248},[],[250],{"type":45,"value":251},"NPENotEqualsExpression",{"type":45,"value":253},". See ",{"type":39,"tag":54,"props":255,"children":257},{"className":256},[],[258],{"type":45,"value":259},"references\u002Fnode-equality.md",{"type":45,"value":261},".",{"type":39,"tag":199,"props":263,"children":264},{},[265,286,288,294,296,302],{"type":39,"tag":92,"props":266,"children":267},{},[268,270,276,278,284],{"type":45,"value":269},"Every ",{"type":39,"tag":54,"props":271,"children":273},{"className":272},[],[274],{"type":45,"value":275},"InferredClosureParameterDeclaration",{"type":45,"value":277}," needs a ",{"type":39,"tag":54,"props":279,"children":281},{"className":280},[],[282],{"type":45,"value":283},"type",{"type":45,"value":285}," child",{"type":45,"value":287},", even though MPS infers the type. Use ",{"type":39,"tag":54,"props":289,"children":291},{"className":290},[],[292],{"type":45,"value":293},"jetbrains.mps.baseLanguage.structure.UndefinedType",{"type":45,"value":295}," as placeholder. Omitting it cascades into misleading \"different parameter numbers\" \u002F \"out of search scope\" \u002F \"operation is not applicable to null\" errors. See ",{"type":39,"tag":54,"props":297,"children":299},{"className":298},[],[300],{"type":45,"value":301},"references\u002Fclosures-catalog.md",{"type":45,"value":261},{"type":39,"tag":199,"props":304,"children":305},{},[306,311,313,319,321,327,329,335,337,343,345,351,352,358,360,366],{"type":39,"tag":92,"props":307,"children":308},{},[309],{"type":45,"value":310},"The Java parser cannot produce smodel\u002Fcollection types",{"type":45,"value":312}," in method return types, cannot parse ",{"type":39,"tag":54,"props":314,"children":316},{"className":315},[],[317],{"type":45,"value":318},":Concept",{"type":45,"value":320}," casts, ",{"type":39,"tag":54,"props":322,"children":324},{"className":323},[],[325],{"type":45,"value":326},".link",{"type":45,"value":328}," accesses, ",{"type":39,"tag":54,"props":330,"children":332},{"className":331},[],[333],{"type":45,"value":334},".behaviorMethod()",{"type":45,"value":336}," calls, or ",{"type":39,"tag":54,"props":338,"children":340},{"className":339},[],[341],{"type":45,"value":342},"MetaAdapterFactory.getContainmentLink",{"type":45,"value":344}," inline. Use ",{"type":39,"tag":54,"props":346,"children":348},{"className":347},[],[349],{"type":45,"value":350},"LINKS.xxx",{"type":45,"value":165},{"type":39,"tag":54,"props":353,"children":355},{"className":354},[],[356],{"type":45,"value":357},"CONCEPTS.xxx",{"type":45,"value":359}," constants and replace types post-parse. See ",{"type":39,"tag":54,"props":361,"children":363},{"className":362},[],[364],{"type":45,"value":365},"references\u002Fjava-parser-capabilities.md",{"type":45,"value":261},{"type":39,"tag":199,"props":368,"children":369},{},[370,389,391,397],{"type":39,"tag":92,"props":371,"children":372},{},[373,375,381,383],{"type":45,"value":374},"Mutations need ",{"type":39,"tag":54,"props":376,"children":378},{"className":377},[],[379],{"type":45,"value":380},"command { … }",{"type":45,"value":382},", reads from non-UI code need ",{"type":39,"tag":54,"props":384,"children":386},{"className":385},[],[387],{"type":45,"value":388},"read action { … }",{"type":45,"value":390},". There is no separate \"write action\". Behavior methods and rule bodies already hold the right lock. See ",{"type":39,"tag":54,"props":392,"children":394},{"className":393},[],[395],{"type":45,"value":396},"references\u002Fconcurrent-access.md",{"type":45,"value":261},{"type":39,"tag":199,"props":399,"children":400},{},[401,406,408,414,416,422,423,429,431,437,438,444,445,451,453,459,460,466,468,474],{"type":39,"tag":92,"props":402,"children":403},{},[404],{"type":45,"value":405},"Pick the right cardinality",{"type":45,"value":407},": ",{"type":39,"tag":54,"props":409,"children":411},{"className":410},[],[412],{"type":45,"value":413},"SLinkAccess",{"type":45,"value":415}," for ",{"type":39,"tag":54,"props":417,"children":419},{"className":418},[],[420],{"type":45,"value":421},"0..1",{"type":45,"value":114},{"type":39,"tag":54,"props":424,"children":426},{"className":425},[],[427],{"type":45,"value":428},"1",{"type":45,"value":430},"; ",{"type":39,"tag":54,"props":432,"children":434},{"className":433},[],[435],{"type":45,"value":436},"SLinkListAccess",{"type":45,"value":415},{"type":39,"tag":54,"props":439,"children":441},{"className":440},[],[442],{"type":45,"value":443},"0..n",{"type":45,"value":114},{"type":39,"tag":54,"props":446,"children":448},{"className":447},[],[449],{"type":45,"value":450},"1..n",{"type":45,"value":452},". One pair serves both reference links and containment children (there is no ",{"type":39,"tag":54,"props":454,"children":456},{"className":455},[],[457],{"type":45,"value":458},"SChildAccess",{"type":45,"value":165},{"type":39,"tag":54,"props":461,"children":463},{"className":462},[],[464],{"type":45,"value":465},"SChildListAccess",{"type":45,"value":467},"). Wrong choice triggers \"out of search scope\" \u002F \"access to link X is not expected here\". See ",{"type":39,"tag":54,"props":469,"children":471},{"className":470},[],[472],{"type":45,"value":473},"references\u002Fdot-expression-basics.md",{"type":45,"value":261},{"type":39,"tag":199,"props":476,"children":477},{},[478,489,491,497,498,504,505,511,512,518,520,526,528,534],{"type":39,"tag":92,"props":479,"children":480},{},[481,487],{"type":39,"tag":54,"props":482,"children":484},{"className":483},[],[485],{"type":45,"value":486},"foreach",{"type":45,"value":488}," has two concepts",{"type":45,"value":490},": collections ",{"type":39,"tag":54,"props":492,"children":494},{"className":493},[],[495],{"type":45,"value":496},"ForEachStatement",{"type":45,"value":415},{"type":39,"tag":54,"props":499,"children":501},{"className":500},[],[502],{"type":45,"value":503},"sequence",{"type":45,"value":165},{"type":39,"tag":54,"props":506,"children":508},{"className":507},[],[509],{"type":45,"value":510},"list",{"type":45,"value":165},{"type":39,"tag":54,"props":513,"children":515},{"className":514},[],[516],{"type":45,"value":517},"set",{"type":45,"value":519},", BaseLanguage ",{"type":39,"tag":54,"props":521,"children":523},{"className":522},[],[524],{"type":45,"value":525},"ForeachStatement",{"type":45,"value":527}," for Java arrays\u002Fiterables. Wrong choice → type error. See ",{"type":39,"tag":54,"props":529,"children":531},{"className":530},[],[532],{"type":45,"value":533},"references\u002Fforeach-statements.md",{"type":45,"value":261},{"type":39,"tag":199,"props":536,"children":537},{},[538,543,545,551,553,559,561,567,568,574],{"type":39,"tag":92,"props":539,"children":540},{},[541],{"type":45,"value":542},"Used-language imports",{"type":45,"value":544},": NF_* operations require ",{"type":39,"tag":54,"props":546,"children":548},{"className":547},[],[549],{"type":45,"value":550},"jetbrains.mps.lang.actions",{"type":45,"value":552}," in the model's used languages; without it, ",{"type":39,"tag":54,"props":554,"children":556},{"className":555},[],[557],{"type":45,"value":558},"add new initialized(...)",{"type":45,"value":560}," etc. fail. See ",{"type":39,"tag":54,"props":562,"children":564},{"className":563},[],[565],{"type":45,"value":566},"references\u002Fproperty-and-mutation-ops.md",{"type":45,"value":214},{"type":39,"tag":54,"props":569,"children":571},{"className":570},[],[572],{"type":45,"value":573},"references\u002Fopenapi-and-dependencies.md",{"type":45,"value":261},{"type":39,"tag":199,"props":576,"children":577},{},[578,583,584,590,592,598,600,606,607,612,613,618,620,626,627,633,634,640,642,648,649,655],{"type":39,"tag":92,"props":579,"children":580},{},[581],{"type":45,"value":582},"Never recommend deprecated operations",{"type":45,"value":407},{"type":39,"tag":54,"props":585,"children":587},{"className":586},[],[588],{"type":45,"value":589},".role",{"type":45,"value":591}," (use ",{"type":39,"tag":54,"props":593,"children":595},{"className":594},[],[596],{"type":45,"value":597},".containingLink",{"type":45,"value":599},"), ",{"type":39,"tag":54,"props":601,"children":603},{"className":602},[],[604],{"type":45,"value":605},".linkDeclaration",{"type":45,"value":591},{"type":39,"tag":54,"props":608,"children":610},{"className":609},[],[611],{"type":45,"value":326},{"type":45,"value":599},{"type":39,"tag":54,"props":614,"children":616},{"className":615},[],[617],{"type":45,"value":589},{"type":45,"value":619}," on ",{"type":39,"tag":54,"props":621,"children":623},{"className":622},[],[624],{"type":45,"value":625},"SReference",{"type":45,"value":591},{"type":39,"tag":54,"props":628,"children":630},{"className":629},[],[631],{"type":45,"value":632},".link.name",{"type":45,"value":599},{"type":39,"tag":54,"props":635,"children":637},{"className":636},[],[638],{"type":45,"value":639},".concept",{"type":45,"value":641}," ",{"type":39,"tag":54,"props":643,"children":645},{"className":644},[],[646],{"type":45,"value":647},"Node_GetConceptOperation",{"type":45,"value":591},{"type":39,"tag":54,"props":650,"children":652},{"className":651},[],[653],{"type":45,"value":654},"node.concept",{"type":45,"value":656}," via typesystem).",{"type":39,"tag":188,"props":658,"children":660},{"id":659},"common-path-workflow",[661],{"type":45,"value":662},"Common-path workflow",{"type":39,"tag":664,"props":665,"children":666},"ol",{},[667,685,722,844,876,909],{"type":39,"tag":199,"props":668,"children":669},{},[670,675,677,683],{"type":39,"tag":92,"props":671,"children":672},{},[673],{"type":45,"value":674},"Identify the source-of-truth layer",{"type":45,"value":676},". If the change is to existing logic in a rule\u002Fmethod body, inspect the current node (shallow ",{"type":39,"tag":54,"props":678,"children":680},{"className":679},[],[681],{"type":45,"value":682},"mps_mcp_print_node",{"type":45,"value":684},") before editing.",{"type":39,"tag":199,"props":686,"children":687},{},[688,699,701,707,708,714,716,721],{"type":39,"tag":92,"props":689,"children":690},{},[691,693],{"type":45,"value":692},"Prefer ",{"type":39,"tag":54,"props":694,"children":696},{"className":695},[],[697],{"type":45,"value":698},"parse_java_and_insert",{"type":45,"value":700}," for plain Java method bodies, expression replacements, and field declarations on ",{"type":39,"tag":54,"props":702,"children":704},{"className":703},[],[705],{"type":45,"value":706},"LINKS",{"type":45,"value":165},{"type":39,"tag":54,"props":709,"children":711},{"className":710},[],[712],{"type":45,"value":713},"CONCEPTS",{"type":45,"value":715}," inner classes. See ",{"type":39,"tag":54,"props":717,"children":719},{"className":718},[],[720],{"type":45,"value":365},{"type":45,"value":261},{"type":39,"tag":199,"props":723,"children":724},{},[725,730,732],{"type":39,"tag":92,"props":726,"children":727},{},[728],{"type":45,"value":729},"For smodel\u002Fcollections\u002Fclosures constructs not parseable as Java",{"type":45,"value":731},", build the node blueprint by hand. See:\n",{"type":39,"tag":195,"props":733,"children":734},{},[735,753,778,825],{"type":39,"tag":199,"props":736,"children":737},{},[738,743,745,751],{"type":39,"tag":54,"props":739,"children":741},{"className":740},[],[742],{"type":45,"value":473},{"type":45,"value":744}," — the universal ",{"type":39,"tag":54,"props":746,"children":748},{"className":747},[],[749],{"type":45,"value":750},"DotExpression(operand, operation)",{"type":45,"value":752}," chaining pattern, closure literal blueprint, type-cast wrapping rules.",{"type":39,"tag":199,"props":754,"children":755},{},[756,761,763,769,770,776],{"type":39,"tag":54,"props":757,"children":759},{"className":758},[],[760],{"type":45,"value":566},{"type":45,"value":762}," — property reads\u002Fwrites, ",{"type":39,"tag":54,"props":764,"children":766},{"className":765},[],[767],{"type":45,"value":768},"add new(C)",{"type":45,"value":61},{"type":39,"tag":54,"props":771,"children":773},{"className":772},[],[774],{"type":45,"value":775},"replace with new(C)",{"type":45,"value":777},", sibling inserts.",{"type":39,"tag":199,"props":779,"children":780},{},[781,787,789,795,796,802,803,809,810,816,817,823],{"type":39,"tag":54,"props":782,"children":784},{"className":783},[],[785],{"type":45,"value":786},"references\u002Freferences-and-queries.md",{"type":45,"value":788}," — ",{"type":39,"tag":54,"props":790,"children":792},{"className":791},[],[793],{"type":45,"value":794},".ancestor\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":797,"children":799},{"className":798},[],[800],{"type":45,"value":801},".descendants\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":804,"children":806},{"className":805},[],[807],{"type":45,"value":808},".reference\u002FC:role\u002F",{"type":45,"value":61},{"type":39,"tag":54,"props":811,"children":813},{"className":812},[],[814],{"type":45,"value":815},".target",{"type":45,"value":61},{"type":39,"tag":54,"props":818,"children":820},{"className":819},[],[821],{"type":45,"value":822},".isInstanceOf",{"type":45,"value":824},", sibling queries.",{"type":39,"tag":199,"props":826,"children":827},{},[828,834,836,842],{"type":39,"tag":54,"props":829,"children":831},{"className":830},[],[832],{"type":45,"value":833},"references\u002Fattribute-access.md",{"type":45,"value":835}," — the ",{"type":39,"tag":54,"props":837,"children":839},{"className":838},[],[840],{"type":45,"value":841},".@",{"type":45,"value":843}," operator: read\u002Fset\u002Fremove an attribute (annotation) attached to a node and reach the children\u002Frefs\u002Fproperties it grafts on (generator macros, comments, requirement traces).",{"type":39,"tag":199,"props":845,"children":846},{},[847,852,854,859,861,867,869,875],{"type":39,"tag":92,"props":848,"children":849},{},[850],{"type":45,"value":851},"For variable declarations and method return types",{"type":45,"value":853}," of MPS collection \u002F smodel types, build the type child explicitly — ",{"type":39,"tag":54,"props":855,"children":857},{"className":856},[],[858],{"type":45,"value":698},{"type":45,"value":860}," produces a wrong ",{"type":39,"tag":54,"props":862,"children":864},{"className":863},[],[865],{"type":45,"value":866},"ClassifierType",{"type":45,"value":868}," for these in return-type position. See ",{"type":39,"tag":54,"props":870,"children":872},{"className":871},[],[873],{"type":45,"value":874},"references\u002Fvariable-declarations.md",{"type":45,"value":261},{"type":39,"tag":199,"props":877,"children":878},{},[879,884,886,892,894,900,902,908],{"type":39,"tag":92,"props":880,"children":881},{},[882],{"type":45,"value":883},"Validate",{"type":45,"value":885}," with ",{"type":39,"tag":54,"props":887,"children":889},{"className":888},[],[890],{"type":45,"value":891},"mps_mcp_check_root_node_problems(nodeReference, onlyNodesWithProblems=true)",{"type":45,"value":893},". Re-read generated ",{"type":39,"tag":54,"props":895,"children":897},{"className":896},[],[898],{"type":45,"value":899},"source_gen\u002F...java",{"type":45,"value":901}," only to confirm runtime shape — never to apply fixes. See ",{"type":39,"tag":54,"props":903,"children":905},{"className":904},[],[906],{"type":45,"value":907},"references\u002Fworkflows.md",{"type":45,"value":261},{"type":39,"tag":199,"props":910,"children":911},{},[912,917,919,925,926,932,933,939,940,945],{"type":39,"tag":92,"props":913,"children":914},{},[915],{"type":45,"value":916},"If imports\u002Fdependencies break",{"type":45,"value":918},", add a used language or model dependency via ",{"type":39,"tag":54,"props":920,"children":922},{"className":921},[],[923],{"type":45,"value":924},"mps_mcp_model_used_language",{"type":45,"value":114},{"type":39,"tag":54,"props":927,"children":929},{"className":928},[],[930],{"type":45,"value":931},"mps_mcp_model_dependency",{"type":45,"value":114},{"type":39,"tag":54,"props":934,"children":936},{"className":935},[],[937],{"type":45,"value":938},"mps_mcp_module_dependency",{"type":45,"value":253},{"type":39,"tag":54,"props":941,"children":943},{"className":942},[],[944],{"type":45,"value":573},{"type":45,"value":261},{"type":39,"tag":48,"props":947,"children":948},{},[949,951,957],{"type":45,"value":950},"If MPS MCP tools are unavailable, do not hand-edit serialized ",{"type":39,"tag":54,"props":952,"children":954},{"className":953},[],[955],{"type":45,"value":956},".mps",{"type":45,"value":958}," files unless explicitly requested — inspect only and report.",{"type":39,"tag":188,"props":960,"children":962},{"id":961},"related-skills",[963],{"type":45,"value":964},"Related Skills",{"type":39,"tag":195,"props":966,"children":967},{},[968,979,1005,1016,1042,1053,1078,1089],{"type":39,"tag":199,"props":969,"children":970},{},[971,977],{"type":39,"tag":54,"props":972,"children":974},{"className":973},[],[975],{"type":45,"value":976},"mps-baselanguage",{"type":45,"value":978}," — host BaseLanguage statements, expressions, classes; this skill is the smodel\u002Fcollections\u002Fclosures overlay.",{"type":39,"tag":199,"props":980,"children":981},{},[982,988,989,995,997,1003],{"type":39,"tag":54,"props":983,"children":985},{"className":984},[],[986],{"type":45,"value":987},"mps-quotations",{"type":45,"value":788},{"type":39,"tag":54,"props":990,"children":992},{"className":991},[],[993],{"type":45,"value":994},"\u003C",{"type":45,"value":996}," … ",{"type":39,"tag":54,"props":998,"children":1000},{"className":999},[],[1001],{"type":45,"value":1002},">",{"type":45,"value":1004}," quotations and antiquotations for assembling node trees inline; use instead of long blueprint chains where they apply.",{"type":39,"tag":199,"props":1006,"children":1007},{},[1008,1014],{"type":39,"tag":54,"props":1009,"children":1011},{"className":1010},[],[1012],{"type":45,"value":1013},"mps-aspect-behavior",{"type":45,"value":1015}," — per-concept method authoring; behavior bodies are the most common host for this skill.",{"type":39,"tag":199,"props":1017,"children":1018},{},[1019,1025,1027,1033,1034,1040],{"type":39,"tag":54,"props":1020,"children":1022},{"className":1021},[],[1023],{"type":45,"value":1024},"mps-aspect-generator",{"type":45,"value":1026}," — generator query bodies, ",{"type":39,"tag":54,"props":1028,"children":1030},{"className":1029},[],[1031],{"type":45,"value":1032},"$IF$",{"type":45,"value":165},{"type":39,"tag":54,"props":1035,"children":1037},{"className":1036},[],[1038],{"type":45,"value":1039},"$MAP_SRC$.mapperFunction",{"type":45,"value":1041},", where this skill provides the smodel idioms.",{"type":39,"tag":199,"props":1043,"children":1044},{},[1045,1051],{"type":39,"tag":54,"props":1046,"children":1048},{"className":1047},[],[1049],{"type":45,"value":1050},"mps-aspect-typesystem",{"type":45,"value":1052}," — inference and checking rule bodies; uses the same idioms.",{"type":39,"tag":199,"props":1054,"children":1055},{},[1056,1062,1063,1069,1070,1076],{"type":39,"tag":54,"props":1057,"children":1059},{"className":1058},[],[1060],{"type":45,"value":1061},"mps-aspect-constraints",{"type":45,"value":788},{"type":39,"tag":54,"props":1064,"children":1066},{"className":1065},[],[1067],{"type":45,"value":1068},"getScope",{"type":45,"value":61},{"type":39,"tag":54,"props":1071,"children":1073},{"className":1072},[],[1074],{"type":45,"value":1075},"canBe*",{"type":45,"value":1077},", property validators; same idiom set.",{"type":39,"tag":199,"props":1079,"children":1080},{},[1081,1087],{"type":39,"tag":54,"props":1082,"children":1084},{"className":1083},[],[1085],{"type":45,"value":1086},"mps-node-editing",{"type":45,"value":1088}," — programmatic node creation and editing from outside model code (the MCP-tool side rather than smodel-language side).",{"type":39,"tag":199,"props":1090,"children":1091},{},[1092,1097,1099,1104,1106,1112,1114,1119,1120,1125,1126,1131,1132,1137,1138,1143,1145,1151],{"type":39,"tag":54,"props":1093,"children":1095},{"className":1094},[],[1096],{"type":45,"value":184},{"type":45,"value":1098}," — the MPS Console and the ",{"type":39,"tag":54,"props":1100,"children":1102},{"className":1101},[],[1103],{"type":45,"value":104},{"type":45,"value":1105}," language (",{"type":39,"tag":54,"props":1107,"children":1109},{"className":1108},[],[1110],{"type":45,"value":1111},"with",{"type":45,"value":1113},"-statement, ",{"type":39,"tag":54,"props":1115,"children":1117},{"className":1116},[],[1118],{"type":45,"value":112},{"type":45,"value":165},{"type":39,"tag":54,"props":1121,"children":1123},{"className":1122},[],[1124],{"type":45,"value":120},{"type":45,"value":165},{"type":39,"tag":54,"props":1127,"children":1129},{"className":1128},[],[1130],{"type":45,"value":127},{"type":45,"value":165},{"type":39,"tag":54,"props":1133,"children":1135},{"className":1134},[],[1136],{"type":45,"value":141},{"type":45,"value":165},{"type":39,"tag":54,"props":1139,"children":1141},{"className":1140},[],[1142],{"type":45,"value":148},{"type":45,"value":1144},", scopes); use it to run or generate the smodel code in this skill across a project\u002Frepository scope, or to insert console commands via ",{"type":39,"tag":54,"props":1146,"children":1148},{"className":1147},[],[1149],{"type":45,"value":1150},"mps_mcp_insert_console_command_from_json",{"type":45,"value":261},{"type":39,"tag":188,"props":1153,"children":1155},{"id":1154},"reference-index",[1156],{"type":45,"value":1157},"Reference Index",{"type":39,"tag":195,"props":1159,"children":1160},{},[1161,1196,1221,1239,1328,1380,1426,1464,1605,1659,1841,1930,2037,2121,2206,2264,2298,2394],{"type":39,"tag":199,"props":1162,"children":1163},{},[1164,1170,1172,1178,1180,1186,1188,1194],{"type":39,"tag":54,"props":1165,"children":1167},{"className":1166},[],[1168],{"type":45,"value":1169},"references\u002Fgolden-rules-and-pitfalls.md",{"type":45,"value":1171}," — read first when an error looks weird (cascade ",{"type":39,"tag":54,"props":1173,"children":1175},{"className":1174},[],[1176],{"type":45,"value":1177},"UnknownDotCall",{"type":45,"value":1179},", \"out of search scope\", \"different parameter numbers\", ",{"type":39,"tag":54,"props":1181,"children":1183},{"className":1182},[],[1184],{"type":45,"value":1185},"List\u003CSNode>",{"type":45,"value":1187}," vs ",{"type":39,"tag":54,"props":1189,"children":1191},{"className":1190},[],[1192],{"type":45,"value":1193},"sequence\u003Cnode\u003CX>>",{"type":45,"value":1195},"); collected symptom→cause→fix table.",{"type":39,"tag":199,"props":1197,"children":1198},{},[1199,1204,1206,1211,1213,1219],{"type":39,"tag":54,"props":1200,"children":1202},{"className":1201},[],[1203],{"type":45,"value":365},{"type":45,"value":1205}," — open before calling ",{"type":39,"tag":54,"props":1207,"children":1209},{"className":1208},[],[1210],{"type":45,"value":83},{"type":45,"value":1212},". Lists what the parser handles, what it silently mis-types, and the canonical workarounds (LINKS\u002FCONCEPTS pattern, post-parse ",{"type":39,"tag":54,"props":1214,"children":1216},{"className":1215},[],[1217],{"type":45,"value":1218},"replace_node_child",{"type":45,"value":1220},", signature widening to avoid smodel casts in arguments).",{"type":39,"tag":199,"props":1222,"children":1223},{},[1224,1229,1231,1237],{"type":39,"tag":54,"props":1225,"children":1227},{"className":1226},[],[1228],{"type":45,"value":907},{"type":45,"value":1230}," — step-by-step recipes: adding a new helper method to a checking-rule class, replacing an expression inside a rule body, interacting with ",{"type":39,"tag":54,"props":1232,"children":1234},{"className":1233},[],[1235],{"type":45,"value":1236},"source_gen\u002F",{"type":45,"value":1238}," artifacts.",{"type":39,"tag":199,"props":1240,"children":1241},{},[1242,1248,1249,1255,1257,1263,1264,1270,1271,1277,1278,1284,1286,1292,1293,1299,1300,1306,1307,1313,1314,1320,1321,1327],{"type":39,"tag":54,"props":1243,"children":1245},{"className":1244},[],[1246],{"type":45,"value":1247},"references\u002Fconcept-id-table.md",{"type":45,"value":788},{"type":39,"tag":54,"props":1250,"children":1252},{"className":1251},[],[1253],{"type":45,"value":1254},"MetaAdapterFactory",{"type":45,"value":1256}," hex IDs for BaseLanguage concepts and links (",{"type":39,"tag":54,"props":1258,"children":1260},{"className":1259},[],[1261],{"type":45,"value":1262},"ThrowStatement",{"type":45,"value":61},{"type":39,"tag":54,"props":1265,"children":1267},{"className":1266},[],[1268],{"type":45,"value":1269},"CatchClause",{"type":45,"value":61},{"type":39,"tag":54,"props":1272,"children":1274},{"className":1273},[],[1275],{"type":45,"value":1276},"TryCatchStatement",{"type":45,"value":61},{"type":39,"tag":54,"props":1279,"children":1281},{"className":1280},[],[1282],{"type":45,"value":1283},"VariableReference",{"type":45,"value":1285},", etc.) plus persistent node refs for ",{"type":39,"tag":54,"props":1287,"children":1289},{"className":1288},[],[1290],{"type":45,"value":1291},"Type",{"type":45,"value":61},{"type":39,"tag":54,"props":1294,"children":1296},{"className":1295},[],[1297],{"type":45,"value":1298},"Expression",{"type":45,"value":61},{"type":39,"tag":54,"props":1301,"children":1303},{"className":1302},[],[1304],{"type":45,"value":1305},"Classifier",{"type":45,"value":61},{"type":39,"tag":54,"props":1308,"children":1310},{"className":1309},[],[1311],{"type":45,"value":1312},"SequenceType",{"type":45,"value":61},{"type":39,"tag":54,"props":1315,"children":1317},{"className":1316},[],[1318],{"type":45,"value":1319},"ListType",{"type":45,"value":61},{"type":39,"tag":54,"props":1322,"children":1324},{"className":1323},[],[1325],{"type":45,"value":1326},"SNodeType",{"type":45,"value":261},{"type":39,"tag":199,"props":1329,"children":1330},{},[1331,1337,1339,1344,1345,1350,1351,1357,1358,1364,1365,1371,1372,1378],{"type":39,"tag":54,"props":1332,"children":1334},{"className":1333},[],[1335],{"type":45,"value":1336},"references\u002Fsmodel-concepts-catalog.md",{"type":45,"value":1338}," — every smodel concept (",{"type":39,"tag":54,"props":1340,"children":1342},{"className":1341},[],[1343],{"type":45,"value":1326},{"type":45,"value":61},{"type":39,"tag":54,"props":1346,"children":1348},{"className":1347},[],[1349],{"type":45,"value":413},{"type":45,"value":61},{"type":39,"tag":54,"props":1352,"children":1354},{"className":1353},[],[1355],{"type":45,"value":1356},"Node_GetAncestorOperation",{"type":45,"value":61},{"type":39,"tag":54,"props":1359,"children":1361},{"className":1360},[],[1362],{"type":45,"value":1363},"OfConceptOperation",{"type":45,"value":61},{"type":39,"tag":54,"props":1366,"children":1368},{"className":1367},[],[1369],{"type":45,"value":1370},"Concept_*Operation",{"type":45,"value":61},{"type":39,"tag":54,"props":1373,"children":1375},{"className":1374},[],[1376],{"type":45,"value":1377},"EnumMember_*",{"type":45,"value":1379},", …) with its ID and MPS surface notation. Open when you need to pick a concept and don't remember which one.",{"type":39,"tag":199,"props":1381,"children":1382},{},[1383,1389,1391,1397,1398,1403,1404,1410,1411,1417,1418,1424],{"type":39,"tag":54,"props":1384,"children":1386},{"className":1385},[],[1387],{"type":45,"value":1388},"references\u002Fbaselanguage-key-concepts.md",{"type":45,"value":1390}," — the small set of BaseLanguage concepts that this skill keeps reaching for (",{"type":39,"tag":54,"props":1392,"children":1394},{"className":1393},[],[1395],{"type":45,"value":1396},"DotExpression",{"type":45,"value":61},{"type":39,"tag":54,"props":1399,"children":1401},{"className":1400},[],[1402],{"type":45,"value":525},{"type":45,"value":61},{"type":39,"tag":54,"props":1405,"children":1407},{"className":1406},[],[1408],{"type":45,"value":1409},"BlockStatement",{"type":45,"value":61},{"type":39,"tag":54,"props":1412,"children":1414},{"className":1413},[],[1415],{"type":45,"value":1416},"NPE*Expression",{"type":45,"value":61},{"type":39,"tag":54,"props":1419,"children":1421},{"className":1420},[],[1422],{"type":45,"value":1423},"UndefinedType",{"type":45,"value":1425},").",{"type":39,"tag":199,"props":1427,"children":1428},{},[1429,1434,1435,1441,1442,1448,1449,1455,1456,1462],{"type":39,"tag":54,"props":1430,"children":1432},{"className":1431},[],[1433],{"type":45,"value":396},{"type":45,"value":788},{"type":39,"tag":54,"props":1436,"children":1438},{"className":1437},[],[1439],{"type":45,"value":1440},"command",{"type":45,"value":61},{"type":39,"tag":54,"props":1443,"children":1445},{"className":1444},[],[1446],{"type":45,"value":1447},"read action",{"type":45,"value":61},{"type":39,"tag":54,"props":1450,"children":1452},{"className":1451},[],[1453],{"type":45,"value":1454},"execute command in EDT",{"type":45,"value":61},{"type":39,"tag":54,"props":1457,"children":1459},{"className":1458},[],[1460],{"type":45,"value":1461},"undo-transparent command",{"type":45,"value":1463},". Open when writing code that reads\u002Fmutates models outside a rule or behavior body.",{"type":39,"tag":199,"props":1465,"children":1466},{},[1467,1473,1475,1481,1483,1489,1491,1497,1498,1504,1505,1511,1512,1518,1519,1525,1526,1532,1533,1539,1540,1546,1548,1553,1555,1560,1561,1566,1567,1573,1575,1581,1582,1588,1590,1596,1597,1603],{"type":39,"tag":54,"props":1468,"children":1470},{"className":1469},[],[1471],{"type":45,"value":1472},"references\u002Fcollections-catalog.md",{"type":45,"value":1474}," — every ",{"type":39,"tag":54,"props":1476,"children":1478},{"className":1477},[],[1479],{"type":45,"value":1480},"*Operation",{"type":45,"value":1482}," from ",{"type":39,"tag":54,"props":1484,"children":1486},{"className":1485},[],[1487],{"type":45,"value":1488},"jetbrains.mps.baseLanguage.collections",{"type":45,"value":1490}," (",{"type":39,"tag":54,"props":1492,"children":1494},{"className":1493},[],[1495],{"type":45,"value":1496},"where",{"type":45,"value":165},{"type":39,"tag":54,"props":1499,"children":1501},{"className":1500},[],[1502],{"type":45,"value":1503},"select",{"type":45,"value":165},{"type":39,"tag":54,"props":1506,"children":1508},{"className":1507},[],[1509],{"type":45,"value":1510},"translate",{"type":45,"value":165},{"type":39,"tag":54,"props":1513,"children":1515},{"className":1514},[],[1516],{"type":45,"value":1517},"any",{"type":45,"value":165},{"type":39,"tag":54,"props":1520,"children":1522},{"className":1521},[],[1523],{"type":45,"value":1524},"take",{"type":45,"value":165},{"type":39,"tag":54,"props":1527,"children":1529},{"className":1528},[],[1530],{"type":45,"value":1531},"sortBy",{"type":45,"value":165},{"type":39,"tag":54,"props":1534,"children":1536},{"className":1535},[],[1537],{"type":45,"value":1538},"reduceLeft",{"type":45,"value":165},{"type":39,"tag":54,"props":1541,"children":1543},{"className":1542},[],[1544],{"type":45,"value":1545},"toList",{"type":45,"value":1547},"\u002F…), the type hierarchy (",{"type":39,"tag":54,"props":1549,"children":1551},{"className":1550},[],[1552],{"type":45,"value":503},{"type":45,"value":1554}," ⊃ ",{"type":39,"tag":54,"props":1556,"children":1558},{"className":1557},[],[1559],{"type":45,"value":510},{"type":45,"value":165},{"type":39,"tag":54,"props":1562,"children":1564},{"className":1563},[],[1565],{"type":45,"value":517},{"type":45,"value":430},{"type":39,"tag":54,"props":1568,"children":1570},{"className":1569},[],[1571],{"type":45,"value":1572},"map",{"type":45,"value":1574},"), creator concepts, list\u002Fset\u002Fmap mutators, ",{"type":39,"tag":54,"props":1576,"children":1578},{"className":1577},[],[1579],{"type":45,"value":1580},"iterator",{"type":45,"value":1187},{"type":39,"tag":54,"props":1583,"children":1585},{"className":1584},[],[1586],{"type":45,"value":1587},"modifying_iterator",{"type":45,"value":1589},", sorted variants, lazy-vs-eager rule, and the ",{"type":39,"tag":54,"props":1591,"children":1593},{"className":1592},[],[1594],{"type":45,"value":1595},"isEmpty",{"type":45,"value":165},{"type":39,"tag":54,"props":1598,"children":1600},{"className":1599},[],[1601],{"type":45,"value":1602},"isNotEmpty",{"type":45,"value":1604}," collections-vs-baselanguage ambiguity.",{"type":39,"tag":199,"props":1606,"children":1607},{},[1608,1613,1614,1620,1622,1627,1629,1635,1636,1642,1643,1649,1651,1657],{"type":39,"tag":54,"props":1609,"children":1611},{"className":1610},[],[1612],{"type":45,"value":301},{"type":45,"value":788},{"type":39,"tag":54,"props":1615,"children":1617},{"className":1616},[],[1618],{"type":45,"value":1619},"ClosureLiteral",{"type":45,"value":1621}," parameters\u002Fbody shape, ",{"type":39,"tag":54,"props":1623,"children":1625},{"className":1624},[],[1626],{"type":45,"value":275},{"type":45,"value":1628}," requirements, ",{"type":39,"tag":54,"props":1630,"children":1632},{"className":1631},[],[1633],{"type":45,"value":1634},"FunctionType",{"type":45,"value":61},{"type":39,"tag":54,"props":1637,"children":1639},{"className":1638},[],[1640],{"type":45,"value":1641},"InvokeFunctionOperation",{"type":45,"value":1187},{"type":39,"tag":54,"props":1644,"children":1646},{"className":1645},[],[1647],{"type":45,"value":1648},"InvokeExpression",{"type":45,"value":1650}," (recursion), ",{"type":39,"tag":54,"props":1652,"children":1654},{"className":1653},[],[1655],{"type":45,"value":1656},"YieldStatement",{"type":45,"value":1658},", SAM conversion, generated-Java compilation form, runtime jar dependency.",{"type":39,"tag":199,"props":1660,"children":1661},{},[1662,1667,1668,1673,1675,1680,1681,1686,1688,1694,1696,1701,1702,1708,1709,1715,1716,1721,1722,1728,1729,1734,1736,1742,1744,1750,1751,1757,1758,1764,1765,1771,1773,1779,1780,1786,1788,1793,1794,1800,1801,1807,1808,1814,1815,1820,1821,1826,1827,1832,1833,1839],{"type":39,"tag":54,"props":1663,"children":1665},{"className":1664},[],[1666],{"type":45,"value":473},{"type":45,"value":744},{"type":39,"tag":54,"props":1669,"children":1671},{"className":1670},[],[1672],{"type":45,"value":750},{"type":45,"value":1674}," chaining pattern; closure-literal blueprint (the reusable building block); cardinality cheat-sheet (",{"type":39,"tag":54,"props":1676,"children":1678},{"className":1677},[],[1679],{"type":45,"value":413},{"type":45,"value":1187},{"type":39,"tag":54,"props":1682,"children":1684},{"className":1683},[],[1685],{"type":45,"value":436},{"type":45,"value":1687},", one pair for both references and children); when to wrap an operand in ",{"type":39,"tag":54,"props":1689,"children":1691},{"className":1690},[],[1692],{"type":45,"value":1693},"SNodeTypeCastExpression",{"type":45,"value":1695},"; navigation blueprints (",{"type":39,"tag":54,"props":1697,"children":1699},{"className":1698},[],[1700],{"type":45,"value":326},{"type":45,"value":61},{"type":39,"tag":54,"props":1703,"children":1705},{"className":1704},[],[1706],{"type":45,"value":1707},".parent",{"type":45,"value":61},{"type":39,"tag":54,"props":1710,"children":1712},{"className":1711},[],[1713],{"type":45,"value":1714},".children",{"type":45,"value":61},{"type":39,"tag":54,"props":1717,"children":1719},{"className":1718},[],[1720],{"type":45,"value":794},{"type":45,"value":61},{"type":39,"tag":54,"props":1723,"children":1725},{"className":1724},[],[1726],{"type":45,"value":1727},".ancestors\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":1730,"children":1732},{"className":1731},[],[1733],{"type":45,"value":801},{"type":45,"value":1735}," including ",{"type":39,"tag":54,"props":1737,"children":1739},{"className":1738},[],[1740],{"type":45,"value":1741},"+",{"type":45,"value":1743}," include-self form); ",{"type":39,"tag":54,"props":1745,"children":1747},{"className":1746},[],[1748],{"type":45,"value":1749},"node:C",{"type":45,"value":1187},{"type":39,"tag":54,"props":1752,"children":1754},{"className":1753},[],[1755],{"type":45,"value":1756},"node as C",{"type":45,"value":430},{"type":39,"tag":54,"props":1759,"children":1761},{"className":1760},[],[1762],{"type":45,"value":1763},"expr\u002F",{"type":45,"value":1490},{"type":39,"tag":54,"props":1766,"children":1768},{"className":1767},[],[1769],{"type":45,"value":1770},"SemanticDowncastExpression",{"type":45,"value":1772},") and ",{"type":39,"tag":54,"props":1774,"children":1776},{"className":1775},[],[1777],{"type":45,"value":1778},"downcast expr",{"type":45,"value":1490},{"type":39,"tag":54,"props":1781,"children":1783},{"className":1782},[],[1784],{"type":45,"value":1785},"DowncastExpression",{"type":45,"value":1787},") for crossing into Java APIs; ",{"type":39,"tag":54,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":45,"value":822},{"type":45,"value":114},{"type":39,"tag":54,"props":1795,"children":1797},{"className":1796},[],[1798],{"type":45,"value":1799},".isNotNull",{"type":45,"value":114},{"type":39,"tag":54,"props":1802,"children":1804},{"className":1803},[],[1805],{"type":45,"value":1806},".isNull",{"type":45,"value":114},{"type":39,"tag":54,"props":1809,"children":1811},{"className":1810},[],[1812],{"type":45,"value":1813},".behaviorMethod(args)",{"type":45,"value":430},{"type":39,"tag":54,"props":1816,"children":1818},{"className":1817},[],[1819],{"type":45,"value":1496},{"type":45,"value":114},{"type":39,"tag":54,"props":1822,"children":1824},{"className":1823},[],[1825],{"type":45,"value":1517},{"type":45,"value":114},{"type":39,"tag":54,"props":1828,"children":1830},{"className":1829},[],[1831],{"type":45,"value":1510},{"type":45,"value":114},{"type":39,"tag":54,"props":1834,"children":1836},{"className":1835},[],[1837],{"type":45,"value":1838},"list.add",{"type":45,"value":1840}," blueprints.",{"type":39,"tag":199,"props":1842,"children":1843},{},[1844,1849,1851,1857,1859,1865,1867,1873,1874,1879,1880,1886,1887,1892,1893,1899,1900,1906,1907,1913,1915,1921,1923,1928],{"type":39,"tag":54,"props":1845,"children":1847},{"className":1846},[],[1848],{"type":45,"value":566},{"type":45,"value":1850}," — read for property reads\u002Fwrites (",{"type":39,"tag":54,"props":1852,"children":1854},{"className":1853},[],[1855],{"type":45,"value":1856},"SPropertyAccess",{"type":45,"value":1858},", assignment, ",{"type":39,"tag":54,"props":1860,"children":1862},{"className":1861},[],[1863],{"type":45,"value":1864},"Property_RemoveOperation",{"type":45,"value":1866},") and tree mutations (",{"type":39,"tag":54,"props":1868,"children":1870},{"className":1869},[],[1871],{"type":45,"value":1872},"SNodeCreator",{"type":45,"value":61},{"type":39,"tag":54,"props":1875,"children":1877},{"className":1876},[],[1878],{"type":45,"value":768},{"type":45,"value":61},{"type":39,"tag":54,"props":1881,"children":1883},{"className":1882},[],[1884],{"type":45,"value":1885},"set new(C)",{"type":45,"value":61},{"type":39,"tag":54,"props":1888,"children":1890},{"className":1889},[],[1891],{"type":45,"value":775},{"type":45,"value":114},{"type":39,"tag":54,"props":1894,"children":1896},{"className":1895},[],[1897],{"type":45,"value":1898},"replace with(other)",{"type":45,"value":61},{"type":39,"tag":54,"props":1901,"children":1903},{"className":1902},[],[1904],{"type":45,"value":1905},".copy",{"type":45,"value":61},{"type":39,"tag":54,"props":1908,"children":1910},{"className":1909},[],[1911],{"type":45,"value":1912},".detach",{"type":45,"value":1914},", sibling inserts), including all ",{"type":39,"tag":54,"props":1916,"children":1918},{"className":1917},[],[1919],{"type":45,"value":1920},"NF_*",{"type":45,"value":1922}," factory-initialized variants and the required ",{"type":39,"tag":54,"props":1924,"children":1926},{"className":1925},[],[1927],{"type":45,"value":550},{"type":45,"value":1929}," used-language import.",{"type":39,"tag":199,"props":1931,"children":1932},{},[1933,1938,1939,1945,1946,1951,1952,1958,1959,1965,1967,1973,1974,1980,1981,1987,1988,1994,1995,2000,2001,2007,2008,2014,2015,2021,2022,2028,2029,2035],{"type":39,"tag":54,"props":1934,"children":1936},{"className":1935},[],[1937],{"type":45,"value":786},{"type":45,"value":788},{"type":39,"tag":54,"props":1940,"children":1942},{"className":1941},[],[1943],{"type":45,"value":1944},"Node_GetReferenceOperation",{"type":45,"value":1490},{"type":39,"tag":54,"props":1947,"children":1949},{"className":1948},[],[1950],{"type":45,"value":808},{"type":45,"value":599},{"type":39,"tag":54,"props":1953,"children":1955},{"className":1954},[],[1956],{"type":45,"value":1957},"Node_GetReferencesOperation",{"type":45,"value":61},{"type":39,"tag":54,"props":1960,"children":1962},{"className":1961},[],[1963],{"type":45,"value":1964},"Reference_GetTargetOperation",{"type":45,"value":1966}," etc.; plus query operations ",{"type":39,"tag":54,"props":1968,"children":1970},{"className":1969},[],[1971],{"type":45,"value":1972},".siblings",{"type":45,"value":165},{"type":39,"tag":54,"props":1975,"children":1977},{"className":1976},[],[1978],{"type":45,"value":1979},".next-sibling",{"type":45,"value":165},{"type":39,"tag":54,"props":1982,"children":1984},{"className":1983},[],[1985],{"type":45,"value":1986},".prev-sibling*",{"type":45,"value":61},{"type":39,"tag":54,"props":1989,"children":1991},{"className":1990},[],[1992],{"type":45,"value":1993},".containingRoot",{"type":45,"value":165},{"type":39,"tag":54,"props":1996,"children":1998},{"className":1997},[],[1999],{"type":45,"value":597},{"type":45,"value":165},{"type":39,"tag":54,"props":2002,"children":2004},{"className":2003},[],[2005],{"type":45,"value":2006},".model",{"type":45,"value":165},{"type":39,"tag":54,"props":2009,"children":2011},{"className":2010},[],[2012],{"type":45,"value":2013},".index",{"type":45,"value":61},{"type":39,"tag":54,"props":2016,"children":2018},{"className":2017},[],[2019],{"type":45,"value":2020},".isExactly(C)",{"type":45,"value":61},{"type":39,"tag":54,"props":2023,"children":2025},{"className":2024},[],[2026],{"type":45,"value":2027},"seq.ofConcept\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":2030,"children":2032},{"className":2031},[],[2033],{"type":45,"value":2034},"seq.ofAspect\u003Ca>",{"type":45,"value":2036},", enum-member operations.",{"type":39,"tag":199,"props":2038,"children":2039},{},[2040,2045,2046,2051,2053,2059,2061,2067,2068,2074,2075,2081,2082,2088,2089,2095,2097,2103,2105,2111,2113,2119],{"type":39,"tag":54,"props":2041,"children":2043},{"className":2042},[],[2044],{"type":45,"value":833},{"type":45,"value":835},{"type":39,"tag":54,"props":2047,"children":2049},{"className":2048},[],[2050],{"type":45,"value":841},{"type":45,"value":2052}," operator (",{"type":39,"tag":54,"props":2054,"children":2056},{"className":2055},[],[2057],{"type":45,"value":2058},"AttributeAccess",{"type":45,"value":2060}," + ",{"type":39,"tag":54,"props":2062,"children":2064},{"className":2063},[],[2065],{"type":45,"value":2066},"NodeAttributeQualifier",{"type":45,"value":114},{"type":39,"tag":54,"props":2069,"children":2071},{"className":2070},[],[2072],{"type":45,"value":2073},"LinkAttributeQualifier",{"type":45,"value":114},{"type":39,"tag":54,"props":2076,"children":2078},{"className":2077},[],[2079],{"type":45,"value":2080},"ChildAttributeQualifier",{"type":45,"value":114},{"type":39,"tag":54,"props":2083,"children":2085},{"className":2084},[],[2086],{"type":45,"value":2087},"PropertyAttributeQualifier",{"type":45,"value":114},{"type":39,"tag":54,"props":2090,"children":2092},{"className":2091},[],[2093],{"type":45,"value":2094},"AllAttributeQualifier",{"type":45,"value":2096},"): read, attach\u002Freplace (assignable l-value), or remove an attribute, list semantics of ",{"type":39,"tag":54,"props":2098,"children":2100},{"className":2099},[],[2101],{"type":45,"value":2102},"multiple",{"type":45,"value":2104}," attributes (",{"type":39,"tag":54,"props":2106,"children":2108},{"className":2107},[],[2109],{"type":45,"value":2110},".@role.add(...)",{"type":45,"value":2112},"), and chain into the children\u002Frefs\u002Fproperties it grafts onto a node. Pairs with ",{"type":39,"tag":54,"props":2114,"children":2116},{"className":2115},[],[2117],{"type":45,"value":2118},"mps-aspect-structure-concepts\u002Freferences\u002Fattributes-and-annotations.md",{"type":45,"value":2120}," (the structure side).",{"type":39,"tag":199,"props":2122,"children":2123},{},[2124,2130,2132,2138,2139,2145,2147,2153,2154,2160,2162,2168,2169,2175,2176,2182,2184,2190,2192,2198,2199,2205],{"type":39,"tag":54,"props":2125,"children":2127},{"className":2126},[],[2128],{"type":45,"value":2129},"references\u002Flink-and-concept-literals.md",{"type":45,"value":2131}," — standalone ",{"type":39,"tag":54,"props":2133,"children":2135},{"className":2134},[],[2136],{"type":45,"value":2137},"link\u002FC : role\u002F",{"type":45,"value":1490},{"type":39,"tag":54,"props":2140,"children":2142},{"className":2141},[],[2143],{"type":45,"value":2144},"LinkIdRefExpression",{"type":45,"value":2146},", two required refs) and ",{"type":39,"tag":54,"props":2148,"children":2150},{"className":2149},[],[2151],{"type":45,"value":2152},"concept\u002FC\u002F",{"type":45,"value":1490},{"type":39,"tag":54,"props":2155,"children":2157},{"className":2156},[],[2158],{"type":45,"value":2159},"ConceptIdRefExpression",{"type":45,"value":2161},"). Open when an API needs an ",{"type":39,"tag":54,"props":2163,"children":2165},{"className":2164},[],[2166],{"type":45,"value":2167},"SContainmentLink",{"type":45,"value":165},{"type":39,"tag":54,"props":2170,"children":2172},{"className":2171},[],[2173],{"type":45,"value":2174},"SReferenceLink",{"type":45,"value":165},{"type":39,"tag":54,"props":2177,"children":2179},{"className":2178},[],[2180],{"type":45,"value":2181},"SConcept",{"type":45,"value":2183}," argument with no preceding ",{"type":39,"tag":54,"props":2185,"children":2187},{"className":2186},[],[2188],{"type":45,"value":2189},"node.",{"type":45,"value":2191}," operand; covers the distinction from ",{"type":39,"tag":54,"props":2193,"children":2195},{"className":2194},[],[2196],{"type":45,"value":2197},"OperationParm_LinkQualifier",{"type":45,"value":214},{"type":39,"tag":54,"props":2200,"children":2202},{"className":2201},[],[2203],{"type":45,"value":2204},"RefConcept_Reference",{"type":45,"value":261},{"type":39,"tag":199,"props":2207,"children":2208},{},[2209,2214,2216,2221,2223,2228,2229,2235,2236,2242,2244,2249,2250,2256,2257,2262],{"type":39,"tag":54,"props":2210,"children":2212},{"className":2211},[],[2213],{"type":45,"value":533},{"type":45,"value":2215}," — the two ",{"type":39,"tag":54,"props":2217,"children":2219},{"className":2218},[],[2220],{"type":45,"value":486},{"type":45,"value":2222}," concepts (collections ",{"type":39,"tag":54,"props":2224,"children":2226},{"className":2225},[],[2227],{"type":45,"value":496},{"type":45,"value":2060},{"type":39,"tag":54,"props":2230,"children":2232},{"className":2231},[],[2233],{"type":45,"value":2234},"ForEachVariable",{"type":45,"value":114},{"type":39,"tag":54,"props":2237,"children":2239},{"className":2238},[],[2240],{"type":45,"value":2241},"ForEachVariableReference",{"type":45,"value":2243}," vs BaseLanguage ",{"type":39,"tag":54,"props":2245,"children":2247},{"className":2246},[],[2248],{"type":45,"value":525},{"type":45,"value":2060},{"type":39,"tag":54,"props":2251,"children":2253},{"className":2252},[],[2254],{"type":45,"value":2255},"LocalVariableDeclaration",{"type":45,"value":114},{"type":39,"tag":54,"props":2258,"children":2260},{"className":2259},[],[2261],{"type":45,"value":1283},{"type":45,"value":2263},"). Open when iterating produces a typesystem error or when you need to reference the loop variable.",{"type":39,"tag":199,"props":2265,"children":2266},{},[2267,2272,2273,2278,2279,2284,2285,2290,2291,2296],{"type":39,"tag":54,"props":2268,"children":2270},{"className":2269},[],[2271],{"type":45,"value":259},{"type":45,"value":788},{"type":39,"tag":54,"props":2274,"children":2276},{"className":2275},[],[2277],{"type":45,"value":244},{"type":45,"value":1490},{"type":39,"tag":54,"props":2280,"children":2282},{"className":2281},[],[2283],{"type":45,"value":212},{"type":45,"value":1772},{"type":39,"tag":54,"props":2286,"children":2288},{"className":2287},[],[2289],{"type":45,"value":251},{"type":45,"value":1490},{"type":39,"tag":54,"props":2292,"children":2294},{"className":2293},[],[2295],{"type":45,"value":220},{"type":45,"value":2297},") blueprints and when to use them.",{"type":39,"tag":199,"props":2299,"children":2300},{},[2301,2306,2308,2314,2315,2321,2322,2328,2329,2335,2336,2342,2343,2349,2350,2356,2357,2363,2365,2371,2372,2378,2380,2386,2387,2393],{"type":39,"tag":54,"props":2302,"children":2304},{"className":2303},[],[2305],{"type":45,"value":874},{"type":45,"value":2307}," — type-child choices for locals and return types (",{"type":39,"tag":54,"props":2309,"children":2311},{"className":2310},[],[2312],{"type":45,"value":2313},"node\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":2316,"children":2318},{"className":2317},[],[2319],{"type":45,"value":2320},"nlist\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":2323,"children":2325},{"className":2324},[],[2326],{"type":45,"value":2327},"node-ptr\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":2330,"children":2332},{"className":2331},[],[2333],{"type":45,"value":2334},"concept\u003CC>",{"type":45,"value":61},{"type":39,"tag":54,"props":2337,"children":2339},{"className":2338},[],[2340],{"type":45,"value":2341},"search scope",{"type":45,"value":61},{"type":39,"tag":54,"props":2344,"children":2346},{"className":2345},[],[2347],{"type":45,"value":2348},"enummember\u003CE>",{"type":45,"value":61},{"type":39,"tag":54,"props":2351,"children":2353},{"className":2352},[],[2354],{"type":45,"value":2355},"sequence\u002Flist\u002Fset\u003Cnode\u003CC>>",{"type":45,"value":61},{"type":39,"tag":54,"props":2358,"children":2360},{"className":2359},[],[2361],{"type":45,"value":2362},"boolean",{"type":45,"value":2364},"); creator blueprints for ",{"type":39,"tag":54,"props":2366,"children":2368},{"className":2367},[],[2369],{"type":45,"value":2370},"new arraylist\u003Cnode\u003CC>>",{"type":45,"value":114},{"type":39,"tag":54,"props":2373,"children":2375},{"className":2374},[],[2376],{"type":45,"value":2377},"new hashset\u003Cnode\u003CC>>",{"type":45,"value":2379}," \u002F etc.; the parse-time return-type fix-up blueprints for ",{"type":39,"tag":54,"props":2381,"children":2383},{"className":2382},[],[2384],{"type":45,"value":2385},"sequence\u003Cnode\u003CType>>",{"type":45,"value":214},{"type":39,"tag":54,"props":2388,"children":2390},{"className":2389},[],[2391],{"type":45,"value":2392},"list\u003Cnode\u003CType>>",{"type":45,"value":261},{"type":39,"tag":199,"props":2395,"children":2396},{},[2397,2402,2403,2409],{"type":39,"tag":54,"props":2398,"children":2400},{"className":2399},[],[2401],{"type":45,"value":573},{"type":45,"value":788},{"type":39,"tag":54,"props":2404,"children":2406},{"className":2405},[],[2407],{"type":45,"value":2408},"org.jetbrains.mps.openapi.*",{"type":45,"value":2410}," interfaces and threading rules (when hand-written Java calls into models); module dependencies vs model dependencies vs used languages, with failure modes (\"Concept not imported\", \"cannot resolve\", \"Class not found at runtime\") and the matching MCP tool to call.",{"items":2412,"total":2484},[2413,2427,2436,2444,2452,2462,2475],{"slug":2414,"name":2414,"fn":2415,"description":2416,"org":2417,"tags":2418,"stars":19,"repoUrl":20,"updatedAt":2426},"mps-aspect-accessories","configure JetBrains MPS module dependencies","Wire MPS module and model dependencies, used languages, used devkits, extended languages, runtime solutions, accessory models, and language\u002Fdependency versions. Use when adding\u002Fremoving module dependencies, importing languages or devkits into a model, declaring runtime solutions, or shipping accessory content visible to consumers without explicit import.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2419,2422,2425],{"name":2420,"slug":2421,"type":15},"Architecture","architecture",{"name":2423,"slug":2424,"type":15},"Configuration","configuration",{"name":13,"slug":14,"type":15},"2026-07-17T06:06:57.311661",{"slug":2428,"name":2428,"fn":2429,"description":2430,"org":2431,"tags":2432,"stars":19,"repoUrl":20,"updatedAt":2435},"mps-aspect-actions","define and edit MPS node factories","Use when defining or editing MPS node factories (the \"actions\" aspect) — `NodeFactories` roots, per-concept `NodeFactory` setup functions that initialize a freshly created node and optionally copy data from a replaced `sampleNode`, plus the actions aspect's `CopyPasteHandlers` and `PasteWrappers` roots. Reach for this skill when a substitution, side transform, completion replacement, or `add new initialized(...)` should preserve fields from the node it is replacing, or when defaults set in a constructor are not enough.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2433,2434],{"name":2420,"slug":2421,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:04:48.066901",{"slug":1013,"name":1013,"fn":2437,"description":2438,"org":2439,"tags":2440,"stars":19,"repoUrl":20,"updatedAt":2443},"define and edit MPS concept behavior","Use when defining or editing MPS `ConceptBehavior` — per-concept methods (non-virtual \u002F virtual \u002F abstract \u002F static \u002F virtual static), constructors, virtual dispatch (MRO), super and interface-default calls (`super\u003CInterface>.method`), overriding methods from `lang.core.behavior` interfaces such as `ScopeProvider.getScope` \u002F `INamedConcept.getName` \u002F `BaseConcept.getPresentation`, calling sibling methods (`LocalBehaviorMethodCall`) and behavior methods from other aspects via `node.method(...)`. Reach for this skill whenever the task involves authoring or modifying `\u003Clang>\u002FlanguageModels\u002Fbehavior.mps`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2441,2442],{"name":2420,"slug":2421,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:45:21.757084",{"slug":1061,"name":1061,"fn":2445,"description":2446,"org":2447,"tags":2448,"stars":19,"repoUrl":20,"updatedAt":2451},"define JetBrains MPS language constraints","Use when defining or editing MPS language constraints — property validators \u002F setters \u002F getters, referent search scopes (imperative or inherited via `ScopeProvider.getScope`), `referentSetHandler` side effects, default-scope blocks, `canBeChild` \u002F `canBeParent` \u002F `canBeAncestor` \u002F `canBeRoot` placement rules, `defaultConcreteConcept` for abstract concepts, `set \u003Cread-only>` and `{name}` aliasing, and scope helpers (`SimpleRoleScope`, `ListScope`, `CompositeScope`, `HidingByNameScope`). Reach for this skill whenever the task involves authoring or modifying `\u003Clang>\u002FlanguageModels\u002Fconstraints.mps`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2449,2450],{"name":2420,"slug":2421,"type":15},{"name":17,"slug":18,"type":15},"2026-07-23T05:41:33.639365",{"slug":2453,"name":2453,"fn":2454,"description":2455,"org":2456,"tags":2457,"stars":19,"repoUrl":20,"updatedAt":2461},"mps-aspect-dataflow","define and debug MPS dataflow builders","Use when defining or debugging MPS dataflow builders for a concept — control\u002Fdata flow declarations that drive reachability analysis and variable-use checking. Covers DataFlowBuilderDeclaration, BuilderBlock, emit instructions (code for, jump, ifjump, label, read, write, ret, mayBeUnreachable), positions (AfterPosition, BeforePosition, LabelPosition), the jetbrains.mps.lang.dataFlow language, the NodeParameter implicit, BL+smodel usage inside builder bodies, and IBuilderMode for advanced analyses such as nullable\u002Fnon-null tracking.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2458],{"name":2459,"slug":2460,"type":15},"Data Analysis","data-analysis","2026-07-13T06:45:19.114674",{"slug":2463,"name":2463,"fn":2464,"description":2465,"org":2466,"tags":2467,"stars":19,"repoUrl":20,"updatedAt":2474},"mps-aspect-editor","define MPS editor layouts","Use when creating or changing MPS editor definitions — the overall workflow from scaffolding a `ConceptEditorDeclaration` through componentizing reusable `EditorComponentDeclaration`s, refining cell models and cell layouts, applying style sheets and indent-layout style items, wiring smart references, leveraging inheritance via super-concepts and interfaces, inspecting (`print_node_json`, `show_node_representation`) and validating (`check_root_node_problems`). Covers `jetbrains.mps.lang.editor` cell models (`CellModel_RefNode`\u002F`CellModel_RefNodeList`\u002F`CellModel_RefCell`\u002F`CellModel_Property`\u002F`CellModel_Constant`), layout choices, and JSON blueprints for common editor shapes. For the non-layout side (action maps, keymaps, transformation\u002Fsubstitute menus) use `mps-aspect-editor-menus-and-keymaps`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2468,2471],{"name":2469,"slug":2470,"type":15},"Design","design",{"name":2472,"slug":2473,"type":15},"UI Components","ui-components","2026-07-23T05:41:56.638151",{"slug":2476,"name":2476,"fn":2477,"description":2478,"org":2479,"tags":2480,"stars":19,"repoUrl":20,"updatedAt":2483},"mps-aspect-editor-menus-and-keymaps","author MPS editor menus and keymaps","Use when authoring the **non-layout** parts of the MPS editor aspect — what happens when the user types, presses a key, triggers completion, pastes, or invokes a context action. Covers action maps (`CellActionMapDeclaration`), cell keymaps (`CellKeyMapDeclaration`), transformation menus (`TransformationMenu_Default` \u002F `_Named` \u002F `_Contribution`), substitute menus (`SubstituteMenu_Default` \u002F `SubstituteMenu` \u002F contributions), side transforms (LEFT\u002FRIGHT), legacy cell menus, paste wrappers and copy-paste handlers (in the actions language), completion styling, reference presentation, two-step deletion, and the editor selection API. Trigger terms: `actionMap`, `keyMap`, `delete_action_id`, `transformationMenu`, `substituteMenu`, `Ctrl+Space`, `Ctrl+Alt+B`, side transform, paste wrapper, completion styling, `PasteWrappers`, `CopyPasteHandlers`. For the **layout** side (cells, layouts, style sheets) use `mps-aspect-editor` instead.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2481,2482],{"name":13,"slug":14,"type":15},{"name":2472,"slug":2473,"type":15},"2026-07-23T05:41:49.666535",31,{"items":2486,"total":2572},[2487,2493,2498,2503,2508,2512,2517,2522,2531,2540,2549,2562],{"slug":2414,"name":2414,"fn":2415,"description":2416,"org":2488,"tags":2489,"stars":19,"repoUrl":20,"updatedAt":2426},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2490,2491,2492],{"name":2420,"slug":2421,"type":15},{"name":2423,"slug":2424,"type":15},{"name":13,"slug":14,"type":15},{"slug":2428,"name":2428,"fn":2429,"description":2430,"org":2494,"tags":2495,"stars":19,"repoUrl":20,"updatedAt":2435},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2496,2497],{"name":2420,"slug":2421,"type":15},{"name":13,"slug":14,"type":15},{"slug":1013,"name":1013,"fn":2437,"description":2438,"org":2499,"tags":2500,"stars":19,"repoUrl":20,"updatedAt":2443},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2501,2502],{"name":2420,"slug":2421,"type":15},{"name":13,"slug":14,"type":15},{"slug":1061,"name":1061,"fn":2445,"description":2446,"org":2504,"tags":2505,"stars":19,"repoUrl":20,"updatedAt":2451},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2506,2507],{"name":2420,"slug":2421,"type":15},{"name":17,"slug":18,"type":15},{"slug":2453,"name":2453,"fn":2454,"description":2455,"org":2509,"tags":2510,"stars":19,"repoUrl":20,"updatedAt":2461},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2511],{"name":2459,"slug":2460,"type":15},{"slug":2463,"name":2463,"fn":2464,"description":2465,"org":2513,"tags":2514,"stars":19,"repoUrl":20,"updatedAt":2474},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2515,2516],{"name":2469,"slug":2470,"type":15},{"name":2472,"slug":2473,"type":15},{"slug":2476,"name":2476,"fn":2477,"description":2478,"org":2518,"tags":2519,"stars":19,"repoUrl":20,"updatedAt":2483},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2520,2521],{"name":13,"slug":14,"type":15},{"name":2472,"slug":2473,"type":15},{"slug":2523,"name":2523,"fn":2524,"description":2525,"org":2526,"tags":2527,"stars":19,"repoUrl":20,"updatedAt":2530},"mps-aspect-generation-plan","modify MPS generation plans","Use when defining or modifying an MPS generation plan — explicit ordering of generators, checkpoints for cross-model reference resolution, forks for parallel branches, IncludePlan composition, conditional PlanContribution activation, ParameterEquals\u002FConceptListSelector fork selectors, and InitModelAttributes for targetFacet routing. Apply when working with @genplan models, the jetbrains.mps.lang.generator.plan language, attaching plans via DevKits or the Custom generation facet, or debugging cross-model mapping label resolution.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2528,2529],{"name":2420,"slug":2421,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:44:59.507855",{"slug":1024,"name":1024,"fn":2532,"description":2533,"org":2534,"tags":2535,"stars":19,"repoUrl":20,"updatedAt":2539},"define JetBrains MPS generator rules","Use when defining or modifying MPS generators — author a generator module, add or edit root\u002Freduction\u002Fweaving\u002Fpattern mapping rules, attach template macros ($COPY_SRC, $LOOP, $IF, $PROPERTY, $REF, $SWITCH, $MAP_SRC, $WEAVE, $INSERT, $LABEL, $TRACE, $VAR), wire mapping labels, build template switches, write pre\u002Fpost mapping scripts, navigate `genContext`, or debug \"rule didn't fire\", missing references, empty output, infinite reduction loops, and generated-Java compile failures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2536,2537,2538],{"name":2420,"slug":2421,"type":15},{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:06:58.042999",{"slug":2541,"name":2541,"fn":2542,"description":2543,"org":2544,"tags":2545,"stars":19,"repoUrl":20,"updatedAt":2548},"mps-aspect-intentions","define and edit MPS intentions","Use when defining or editing MPS intentions (the Alt+Enter context-action aspect) — adding `IntentionDeclaration` roots, parameterized or surround-with variants, description\u002FisApplicable\u002Fexecute blocks, child-filter functions, factory-initialized AST splicing, or debugging why an intention is not offered. Lives in the language's `intentions` model and uses `jetbrains.mps.lang.intentions`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2546,2547],{"name":2420,"slug":2421,"type":15},{"name":13,"slug":14,"type":15},"2026-07-23T05:41:48.692899",{"slug":2550,"name":2550,"fn":2551,"description":2552,"org":2553,"tags":2554,"stars":19,"repoUrl":20,"updatedAt":2561},"mps-aspect-migrations","author and debug MPS migration scripts","Use when authoring or debugging MPS migration scripts that upgrade user models after a language definition changes — covers jetbrains.mps.lang.migration (MigrationScript class-based, PureMigrationScript declarative, MoveConcept\u002FMoveContainmentLink\u002FMoveReferenceLink\u002FMoveProperty, ordering via OrderDependency, data exchange via putData\u002FgetData, RefactoringLog, ConceptMigrationReference) and jetbrains.mps.lang.script Enhancement Scripts (MigrationScript with MigrationScriptPart_Instance, ExtractInterfaceMigration, FactoryMigrationScriptPart, CommentMigrationScriptPart) — when a model needs version-gated upgrade, concept rename or removal, link or property rename, instance-level transformation, or composition of migration steps.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2555,2558],{"name":2556,"slug":2557,"type":15},"Debugging","debugging",{"name":2559,"slug":2560,"type":15},"Migration","migration","2026-07-13T06:45:20.372122",{"slug":2563,"name":2563,"fn":2564,"description":2565,"org":2566,"tags":2567,"stars":19,"repoUrl":20,"updatedAt":2571},"mps-aspect-structure-concepts","define concepts in MPS structure aspect","Define concepts, interface concepts, enumerations, and constrained data types in an MPS language's `structure` aspect. Covers smart-reference detection, alias rules, cardinality, INamedConcept usage, bulk creation, and the full `mps_mcp_alter_structure` \u002F `mps_mcp_query_structure` reference. Use when authoring or modifying a language's structure model.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[2568],{"name":2569,"slug":2570,"type":15},"Data Modeling","data-modeling","2026-07-23T05:41:30.705975",188]