package jetbrains.mps.lang.test.generator.template.main;

/*Generated by MPS */

import jetbrains.mps.generator.runtime.Generated;
import jetbrains.mps.generator.impl.query.QueryProviderBase;
import jetbrains.mps.generator.template.BaseMappingRuleContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.baseLanguage.classifiers.behavior.ThisClassifierExpression__BehaviorDescriptor;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.lang.test.behavior.IReferenceAttachable__BehaviorDescriptor;
import jetbrains.mps.generator.template.PropertyMacroContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations;
import jetbrains.mps.lang.plugin.behavior.KeyMapKeystroke__BehaviorDescriptor;
import jetbrains.mps.lang.test.behavior.ActionReference__BehaviorDescriptor;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.test.generator.template.util.TestsUtil;
import jetbrains.mps.lang.test.behavior.TestInfo__BehaviorDescriptor;
import jetbrains.mps.baseLanguage.unitTest.behavior.ITestCase__BehaviorDescriptor;
import jetbrains.mps.baseLanguage.unitTest.behavior.ITestMethod__BehaviorDescriptor;
import jetbrains.mps.lang.test.behavior.NodesTestCase__BehaviorDescriptor;
import jetbrains.mps.lang.intentions.behavior.BaseIntentionDeclaration__BehaviorDescriptor;
import jetbrains.mps.internal.collections.runtime.ListSequence;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
import jetbrains.mps.util.NameUtil;
import jetbrains.mps.lang.migration.behavior.IMigrationUnit__BehaviorDescriptor;
import org.jetbrains.mps.openapi.model.SNodeReference;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SModelOperations;
import jetbrains.mps.lang.test.behavior.INodesTestMethod__BehaviorDescriptor;
import jetbrains.mps.generator.template.ReferenceMacroContext;
import jetbrains.mps.lang.test.behavior.DragMouseStatement__BehaviorDescriptor;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SEnumOperations;
import jetbrains.mps.generator.template.IfMacroContext;
import org.jetbrains.mps.openapi.language.SEnumerationLiteral;
import jetbrains.mps.generator.template.SourceSubstituteMacroNodeContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SConceptOperations;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.lang.smodel.behavior.ReferenceLinkId__BehaviorDescriptor;
import jetbrains.mps.lang.test.behavior.ScopesTest__BehaviorDescriptor;
import jetbrains.mps.lang.modelapi.behavior.NodePointer__BehaviorDescriptor;
import jetbrains.mps.generator.template.TemplateArgumentContext;
import jetbrains.mps.generator.template.SourceSubstituteMacroNodesContext;
import java.util.Set;
import jetbrains.mps.internal.collections.runtime.SetSequence;
import java.util.LinkedHashSet;
import java.util.ArrayList;
import java.util.List;
import jetbrains.mps.lang.test.behavior.IgnoreMigrationDataOption__BehaviorDescriptor;
import jetbrains.mps.generator.template.MapSrcMacroPostProcContext;
import jetbrains.mps.generator.template.InsertMacroContext;
import jetbrains.mps.generator.template.TemplateVarContext;
import java.util.Map;
import jetbrains.mps.generator.impl.query.ReductionRuleCondition;
import java.util.HashMap;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.generator.impl.query.QueryKey;
import jetbrains.mps.generator.template.ReductionRuleQueryContext;
import jetbrains.mps.generator.impl.GenerationFailureException;
import jetbrains.mps.generator.impl.query.MapRootRuleCondition;
import jetbrains.mps.generator.template.MapRootRuleContext;
import jetbrains.mps.generator.impl.query.SourceNodeQuery;
import org.jetbrains.annotations.Nullable;
import jetbrains.mps.generator.impl.query.SourceNodesQuery;
import java.util.Collection;
import jetbrains.mps.util.IterableUtil;
import jetbrains.mps.generator.impl.query.PropertyValueQuery;
import org.jetbrains.mps.openapi.language.SProperty;
import jetbrains.mps.generator.impl.query.IfMacroCondition;
import jetbrains.mps.generator.impl.query.ReferenceTargetQuery;
import jetbrains.mps.generator.impl.query.VariableValueQuery;
import jetbrains.mps.generator.impl.query.CallArgumentQuery;
import jetbrains.mps.generator.impl.query.InsertMacroQuery;
import jetbrains.mps.generator.impl.query.MapPostProcessor;
import jetbrains.mps.smodel.builder.SNodeBuilder;
import org.jetbrains.mps.openapi.language.SConcept;
import org.jetbrains.mps.openapi.language.SContainmentLink;
import org.jetbrains.mps.openapi.language.SReferenceLink;

@Generated
public class QueriesGenerated extends QueryProviderBase {
  public QueriesGenerated() {
    super(1);
  }
  public static boolean rule_Condition_0_0(final BaseMappingRuleContext _context) {
    return (SNodeOperations.getParent(_context.getNode()) == null);
  }
  public static boolean rule_Condition_0_1(final BaseMappingRuleContext _context) {
    return SNodeOperations.isInstanceOf(ThisClassifierExpression__BehaviorDescriptor.getClassifier_idhEwJeDN.invoke(_context.getNode()), CONCEPTS.NodesTestCase$nd);
  }
  public static boolean rule_Condition_0_2(final BaseMappingRuleContext _context) {
    return SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), LINKS.operation$gs9E), CONCEPTS.EditorOperation$OD);
  }
  public static boolean rule_Condition_16_0(final BaseMappingRuleContext _context) {
    return (IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()) != null);
  }
  public static boolean rule_Condition_16_1(final BaseMappingRuleContext _context) {
    return (IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()) == null);
  }
  public static boolean rule_Condition_16_2(final BaseMappingRuleContext _context) {
    return (IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()) != null);
  }
  public static boolean rule_Condition_16_3(final BaseMappingRuleContext _context) {
    return (IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()) == null);
  }
  public static boolean rule_Condition_16_4(final BaseMappingRuleContext _context) {
    return (IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()) != null);
  }
  public static boolean rule_Condition_16_5(final BaseMappingRuleContext _context) {
    return (IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()) == null);
  }
  public static Object propertyMacro_GetValue_0_0(final PropertyMacroContext _context) {
    return SPropertyOperations.getBoolean(_context.getNode(), PROPS.includeSelf$q9ZQ);
  }
  public static Object propertyMacro_GetValue_0_1(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(_context.getNode(), PROPS.keys$Zxe6);
  }
  public static Object propertyMacro_GetValue_0_2(final PropertyMacroContext _context) {
    return SPropertyOperations.getInteger(_context.getNode(), PROPS.x$m_ec);
  }
  public static Object propertyMacro_GetValue_0_3(final PropertyMacroContext _context) {
    return _context.createUniqueName("x", _context.getNode());
  }
  public static Object propertyMacro_GetValue_0_4(final PropertyMacroContext _context) {
    return SPropertyOperations.getInteger(_context.getNode(), PROPS.y$m_td);
  }
  public static Object propertyMacro_GetValue_0_5(final PropertyMacroContext _context) {
    return _context.createUniqueName("y", _context.getNode());
  }
  public static Object propertyMacro_GetValue_0_6(final PropertyMacroContext _context) {
    return _context.createUniqueName("eventTargetComponent", _context.getNode());
  }
  public static Object propertyMacro_GetValue_0_7(final PropertyMacroContext _context) {
    return SPropertyOperations.getInteger(_context.getNode(), PROPS.x$X3u1);
  }
  public static Object propertyMacro_GetValue_0_8(final PropertyMacroContext _context) {
    return SPropertyOperations.getInteger(_context.getNode(), PROPS.y$X3H2);
  }
  public static Object propertyMacro_GetValue_0_9(final PropertyMacroContext _context) {
    return (String) KeyMapKeystroke__BehaviorDescriptor.getKeyStroke_idhEwIlzu.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_0_10(final PropertyMacroContext _context) {
    return (String) ActionReference__BehaviorDescriptor.getActionId_idX8Ly3typOa.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_1_0(final PropertyMacroContext _context) {
    return ((SNode) _context.getVariable("testNode")).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_3_0(final PropertyMacroContext _context) {
    return TestsUtil.getProjectPath(SNodeOperations.getModel(_context.getNode()));
  }
  public static Object propertyMacro_GetValue_3_1(final PropertyMacroContext _context) {
    return _context.getOriginalInputModel().getReference().toString();
  }
  public static Object propertyMacro_GetValue_3_2(final PropertyMacroContext _context) {
    return (boolean) TestInfo__BehaviorDescriptor.reOpenProject_idThWTaQhG7P.invoke(SNodeOperations.asSConcept(CONCEPTS.TestInfo$9q), SNodeOperations.getModel(_context.getNode()));
  }
  public static Object propertyMacro_GetValue_3_3(final PropertyMacroContext _context) {
    return (String) ITestCase__BehaviorDescriptor.getSimpleClassName_idhSQIE8p.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_3_4(final PropertyMacroContext _context) {
    return (String) ITestMethod__BehaviorDescriptor.getTestName_idhGBohAB.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_3_5(final PropertyMacroContext _context) {
    return (String) NodesTestCase__BehaviorDescriptor.getTestBodyName_idhOw0ICJ.invoke(SNodeOperations.asSConcept(CONCEPTS.NodesTestCase$nd));
  }
  public static Object propertyMacro_GetValue_3_6(final PropertyMacroContext _context) {
    return SNodeOperations.getParent(_context.getNode()).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_3_7(final PropertyMacroContext _context) {
    return "var" + _context.getNode().getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_3_8(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(_context.getNode(), PROPS.name$MnvL);
  }
  public static Object propertyMacro_GetValue_6_0(final PropertyMacroContext _context) {
    return _context.getNode().getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_6_1(final PropertyMacroContext _context) {
    return (String) ITestMethod__BehaviorDescriptor.getTestName_idhGBohAB.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_7_0(final PropertyMacroContext _context) {
    return (String) BaseIntentionDeclaration__BehaviorDescriptor.getGeneratedId_id2ytFvC$HDcE.invoke(SLinkOperations.getTarget(_context.getNode(), LINKS.intention$m3$T));
  }
  public static Object propertyMacro_GetValue_7_1(final PropertyMacroContext _context) {
    return (String) BaseIntentionDeclaration__BehaviorDescriptor.getGeneratedId_id2ytFvC$HDcE.invoke(SLinkOperations.getTarget(_context.getNode(), LINKS.intention$m3$T));
  }
  public static Object propertyMacro_GetValue_8_0(final PropertyMacroContext _context) {
    return TestsUtil.getProjectPath(SNodeOperations.getModel(_context.getNode()));
  }
  public static Object propertyMacro_GetValue_8_1(final PropertyMacroContext _context) {
    return _context.getOriginalInputModel().getReference().toString();
  }
  public static Object propertyMacro_GetValue_8_2(final PropertyMacroContext _context) {
    return (String) ITestCase__BehaviorDescriptor.getSimpleClassName_idhSQIE8p.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_8_3(final PropertyMacroContext _context) {
    return (String) ITestMethod__BehaviorDescriptor.getTestName_idhGBohAB.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_8_4(final PropertyMacroContext _context) {
    SNode nodeToEdit = (SLinkOperations.getTarget(_context.getNode(), LINKS.nodeToEdit$SO8n) != null ? SLinkOperations.getTarget(_context.getNode(), LINKS.nodeToEdit$SO8n) : SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), LINKS.testNodeBefore$aUeC), LINKS.nodeToCheck$OBcW));
    if ((nodeToEdit == null)) {
      _context.showErrorMessage(_context.getNode(), "A node in the 'before' section must be provided");
    }
    if (ListSequence.fromList(SNodeOperations.getNodeDescendants(nodeToEdit, CONCEPTS.AnonymousCellAnnotation$hB, false, new SAbstractConcept[]{})).isEmpty()) {
      _context.showWarningMessage(_context.getNode(), "A node in the 'before' section must have at least one AnonymousCellAnnotation attached");
    }
    return nodeToEdit.getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_8_5(final PropertyMacroContext _context) {
    SNode nodeResult = (SLinkOperations.getTarget(_context.getNode(), LINKS.result$sGjR) != null ? SLinkOperations.getTarget(_context.getNode(), LINKS.result$sGjR) : SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), LINKS.testNodeResult$bm9v), LINKS.nodeToCheck$OBcW));
    if (nodeResult != null) {
      return nodeResult.getNodeId().toString();
    } else {
      return "";
    }
  }
  public static Object propertyMacro_GetValue_12_0(final PropertyMacroContext _context) {
    return (String) BaseIntentionDeclaration__BehaviorDescriptor.getGeneratedId_id2ytFvC$HDcE.invoke(SLinkOperations.getTarget(_context.getNode(), LINKS.intention$gTRv));
  }
  public static Object propertyMacro_GetValue_13_0(final PropertyMacroContext _context) {
    return TestsUtil.getProjectPath(SNodeOperations.getModel(_context.getNode()));
  }
  public static Object propertyMacro_GetValue_13_1(final PropertyMacroContext _context) {
    return _context.getOriginalInputModel().getReference().toString();
  }
  public static Object propertyMacro_GetValue_13_2(final PropertyMacroContext _context) {
    return (boolean) TestInfo__BehaviorDescriptor.reOpenProject_idThWTaQhG7P.invoke(SNodeOperations.asSConcept(CONCEPTS.TestInfo$9q), SNodeOperations.getModel(_context.getNode()));
  }
  public static Object propertyMacro_GetValue_13_3(final PropertyMacroContext _context) {
    return (String) ITestCase__BehaviorDescriptor.getSimpleClassName_idhSQIE8p.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_13_4(final PropertyMacroContext _context) {
    return (String) ITestMethod__BehaviorDescriptor.getTestName_idhGBohAB.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_13_5(final PropertyMacroContext _context) {
    return _context.getNode().getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_13_6(final PropertyMacroContext _context) {
    return _context.getNode().getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_13_7(final PropertyMacroContext _context) {
    return NameUtil.longNameFromNamespaceAndShortName(SLinkOperations.getTarget(_context.getNode(), LINKS.migration$XW2Z).getModel().getName().getLongName(), IMigrationUnit__BehaviorDescriptor.getClassName_id5Fumpqe4XH$.invoke(SLinkOperations.getTarget(_context.getNode(), LINKS.migration$XW2Z)));
  }
  public static Object propertyMacro_GetValue_14_0(final PropertyMacroContext _context) {
    return (String) BaseIntentionDeclaration__BehaviorDescriptor.getGeneratedId_id2ytFvC$HDcE.invoke(SLinkOperations.getTarget(_context.getNode(), LINKS.intention$MKHQ));
  }
  public static Object propertyMacro_GetValue_15_0(final PropertyMacroContext _context) {
    return SPropertyOperations.getBoolean(_context.getNode(), PROPS.allowWarnings$lvb6);
  }
  public static Object propertyMacro_GetValue_15_1(final PropertyMacroContext _context) {
    return SPropertyOperations.getBoolean(_context.getNode(), PROPS.allowErrors$luW5);
  }
  public static Object propertyMacro_GetValue_15_2(final PropertyMacroContext _context) {
    return SPropertyOperations.getBoolean(_context.getNode(), PROPS.includeSelf$xNXw);
  }
  public static Object propertyMacro_GetValue_15_3(final PropertyMacroContext _context) {
    return _context.getOriginalCopiedInputNode(SLinkOperations.getTarget(_context.getNode(), LINKS.type$ZQJx)).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_15_4(final PropertyMacroContext _context) {
    return _context.getOriginalCopiedInputNode(SLinkOperations.getTarget(_context.getNode(), LINKS.type$ZQJx)).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_15_5(final PropertyMacroContext _context) {
    return _context.getOriginalCopiedInputNode(_context.getNode()).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_15_6(final PropertyMacroContext _context) {
    return _context.getOriginalCopiedInputNode(SLinkOperations.getTarget(_context.getNode(), LINKS.ref$RHE6)).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_16_0(final PropertyMacroContext _context) {
    SNodeReference targetRef = ((SNodeReference) _context.getVariable("var:targetRef"));
    if (targetRef.getModelReference() != SModelOperations.getPointer(SNodeOperations.getModel(_context.getNode()))) {
      return targetRef.getModelReference().toString();
    } else {
      return _context.getOriginalInputModel().getReference().toString();
    }
  }
  public static Object propertyMacro_GetValue_16_1(final PropertyMacroContext _context) {
    SNodeReference targetRef = ((SNodeReference) _context.getVariable("var:targetRef"));
    if (targetRef.getModelReference() != SModelOperations.getPointer(SNodeOperations.getModel(_context.getNode()))) {
      return targetRef.getNodeId().toString();
    } else {
      return _context.getOriginalCopiedInputNode(IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode())).getNodeId().toString();
    }
  }
  public static Object propertyMacro_GetValue_16_2(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_16_3(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_16_4(final PropertyMacroContext _context) {
    SNodeReference targetRef = ((SNodeReference) _context.getVariable("var:targetRef"));
    if (targetRef.getModelReference() != SModelOperations.getPointer(SNodeOperations.getModel(_context.getNode()))) {
      return targetRef.getModelReference().toString();
    } else {
      return _context.getOriginalInputModel().getReference().toString();
    }
  }
  public static Object propertyMacro_GetValue_16_5(final PropertyMacroContext _context) {
    SNodeReference targetRef = ((SNodeReference) _context.getVariable("var:targetRef"));
    if (targetRef.getModelReference() != SModelOperations.getPointer(SNodeOperations.getModel(_context.getNode()))) {
      return targetRef.getNodeId().toString();
    } else {
      return _context.getOriginalCopiedInputNode(IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode())).getNodeId().toString();
    }
  }
  public static Object propertyMacro_GetValue_16_6(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_16_7(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_16_8(final PropertyMacroContext _context) {
    SNodeReference targetRef = ((SNodeReference) _context.getVariable("var:targetRef"));
    if (targetRef.getModelReference() != SModelOperations.getPointer(SNodeOperations.getModel(_context.getNode()))) {
      return targetRef.getModelReference().toString();
    } else {
      return _context.getOriginalInputModel().getReference().toString();
    }
  }
  public static Object propertyMacro_GetValue_16_9(final PropertyMacroContext _context) {
    SNodeReference targetRef = ((SNodeReference) _context.getVariable("var:targetRef"));
    if (targetRef.getModelReference() != SModelOperations.getPointer(SNodeOperations.getModel(_context.getNode()))) {
      return targetRef.getNodeId().toString();
    } else {
      return _context.getOriginalCopiedInputNode(IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode())).getNodeId().toString();
    }
  }
  public static Object propertyMacro_GetValue_16_10(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_16_11(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_16_12(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_16_13(final PropertyMacroContext _context) {
    return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), LINKS.expectedMessage$6o6s), PROPS.text$ppyZ);
  }
  public static Object propertyMacro_GetValue_17_0(final PropertyMacroContext _context) {
    SNode intention = SLinkOperations.getTarget(_context.getNode(), LINKS.quickfix$q6rO);
    return intention.getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_18_0(final PropertyMacroContext _context) {
    return ((SNode) _context.getVariable("testNode")).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_19_0(final PropertyMacroContext _context) {
    return (String) ITestMethod__BehaviorDescriptor.getTestName_idhGBohAB.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_19_1(final PropertyMacroContext _context) {
    return (String) ITestMethod__BehaviorDescriptor.getTestName_idhGBohAB.invoke(_context.getNode());
  }
  public static Object propertyMacro_GetValue_20_0(final PropertyMacroContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.type$ZQJx).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_20_1(final PropertyMacroContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.type$ZQJx).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_20_2(final PropertyMacroContext _context) {
    return _context.getNode().getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_21_0(final PropertyMacroContext _context) {
    return _context.getOriginalCopiedInputNode(INodesTestMethod__BehaviorDescriptor.getAnnotatedNode_id38gbJV0XvZR.invoke(_context.getNode())).getNodeId().toString();
  }
  public static Object propertyMacro_GetValue_21_1(final PropertyMacroContext _context) {
    return _context.getOriginalCopiedInputNode(_context.getNode()).getNodeId().toString();
  }
  public static Object referenceMacro_GetReferent_0_0(final ReferenceMacroContext _context) {
    return _context.getOutputNodeByInputNodeAndMappingLabel(SLinkOperations.getTarget(_context.getNode(), LINKS.member$oLt6), "DCM2Method");
  }
  public static Object referenceMacro_GetReferent_0_1(final ReferenceMacroContext _context) {
    return _context.getOutputNodeByInputNodeAndMappingLabel(DragMouseStatement__BehaviorDescriptor.getPressMouseStatement_id3CVcUJxN49_.invoke(_context.getNode()), "eventTargetComponent");
  }
  public static Object referenceMacro_GetReferent_0_2(final ReferenceMacroContext _context) {
    return _context.getOutputNodeByInputNodeAndMappingLabel(DragMouseStatement__BehaviorDescriptor.getPressMouseStatement_id3CVcUJxN49_.invoke(_context.getNode()), "pressMouseX");
  }
  public static Object referenceMacro_GetReferent_0_3(final ReferenceMacroContext _context) {
    return _context.getOutputNodeByInputNodeAndMappingLabel(DragMouseStatement__BehaviorDescriptor.getPressMouseStatement_id3CVcUJxN49_.invoke(_context.getNode()), "pressMouseY");
  }
  public static Object referenceMacro_GetReferent_3_0(final ReferenceMacroContext _context) {
    //  FIXME have to decide if intermediate BaseTestBody class makes any sense at all

    // In fact, could go with a regular template reference as it's 1-1 mapping, but
    // decided to keep this RM for the sake of fix me comment, above
    return _context.getOutputNodeByInputNodeAndMappingLabel(_context.getNode(), "Test2Method");
  }
  public static Object referenceMacro_GetReferent_8_0(final ReferenceMacroContext _context) {
    return SEnumOperations.getMemberName0(SPropertyOperations.getEnum(_context.getNode(), PROPS.level$MerT));
  }
  public static boolean ifMacro_Condition_0_0(final IfMacroContext _context) {
    return ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), LINKS.statementList$5Thu), LINKS.statement$53DE)).isEmpty();
  }
  public static boolean ifMacro_Condition_2_0(final IfMacroContext _context) {
    return (SLinkOperations.getTarget(_context.getNode(), LINKS.message$SzPZ) == null);
  }
  public static boolean ifMacro_Condition_3_0(final IfMacroContext _context) {
    return (SLinkOperations.getTarget(_context.getNode(), LINKS.beforeTests$Geqj) != null) && (SNodeOperations.getNodeAncestor(SLinkOperations.getTarget(_context.getNode(), LINKS.beforeTests$Geqj), CONCEPTS.BaseCommentAttribute$nv, false, false) == null);
  }
  public static boolean ifMacro_Condition_3_1(final IfMacroContext _context) {
    return (SLinkOperations.getTarget(_context.getNode(), LINKS.beforeTests$Geqj) != null);
  }
  public static boolean ifMacro_Condition_3_2(final IfMacroContext _context) {
    return (SLinkOperations.getTarget(_context.getNode(), LINKS.afterTests$GqQ8) != null) && (SNodeOperations.getNodeAncestor(SLinkOperations.getTarget(_context.getNode(), LINKS.afterTests$GqQ8), CONCEPTS.BaseCommentAttribute$nv, false, false) == null);
  }
  public static boolean ifMacro_Condition_3_3(final IfMacroContext _context) {
    return (SLinkOperations.getTarget(_context.getNode(), LINKS.afterTests$GqQ8) != null);
  }
  public static boolean ifMacro_Condition_6_0(final IfMacroContext _context) {
    return SEnumOperations.isMember(((SEnumerationLiteral) _context.getVariable("mode")), 0x2451232bcdee06bdL);
  }
  public static boolean ifMacro_Condition_6_1(final IfMacroContext _context) {
    return SEnumOperations.isMember(((SEnumerationLiteral) _context.getVariable("mode")), 0x2451232bcdee06baL);
  }
  public static boolean ifMacro_Condition_6_2(final IfMacroContext _context) {
    return SEnumOperations.isMember(((SEnumerationLiteral) _context.getVariable("mode")), 0x2451232bcdee06b9L);
  }
  public static boolean ifMacro_Condition_7_0(final IfMacroContext _context) {
    return (SLinkOperations.getTarget(_context.getNode(), LINKS.parameter$TyS_) != null);
  }
  public static boolean ifMacro_Condition_8_0(final IfMacroContext _context) {
    return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), LINKS.logEvents$XchQ)).isNotEmpty();
  }
  public static boolean ifMacro_Condition_8_1(final IfMacroContext _context) {
    return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), LINKS.logEvents$XchQ)).isNotEmpty();
  }
  public static boolean ifMacro_Condition_15_0(final IfMacroContext _context) {
    return SNodeOperations.getModel(SLinkOperations.getTarget(_context.getNode(), LINKS.ref$RHE6)) != _context.getInputModel();
  }
  public static boolean ifMacro_Condition_17_0(final IfMacroContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.quickfix$q6rO) != null;
  }
  public static boolean ifMacro_Condition_19_0(final IfMacroContext _context) {
    return SEnumOperations.isMember(((SEnumerationLiteral) _context.getVariable("mode")), 0x2451232bcdee06bdL);
  }
  public static boolean ifMacro_Condition_19_1(final IfMacroContext _context) {
    return SEnumOperations.isMember(((SEnumerationLiteral) _context.getVariable("mode")), 0x2451232bcdee06baL);
  }
  public static boolean ifMacro_Condition_19_2(final IfMacroContext _context) {
    return SEnumOperations.isMember(((SEnumerationLiteral) _context.getVariable("mode")), 0x2451232bcdee06b9L);
  }
  public static SNode sourceNodeQuery_0_0(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.nodeToCheck$bx55);
  }
  public static SNode sourceNodeQuery_0_1(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.nodeToCheck$bx55);
  }
  public static SNode sourceNodeQuery_0_2(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.operation$gs9E);
  }
  public static SNode sourceNodeQuery_0_3(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.actionReference$wbpR);
  }
  public static SNode sourceNodeQuery_0_4(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.actionReference$weYP);
  }
  public static SNode sourceNodeQuery_2_0(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), LINKS.message$SzPZ), LINKS.message$FmaW);
  }
  public static SNode sourceNodeQuery_3_0(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.returnType$5xoi);
  }
  public static SNode sourceNodeQuery_7_0(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.parameter$TyS_);
  }
  public static SNode sourceNodeQuery_13_0(final SourceSubstituteMacroNodeContext _context) {
    return SLinkOperations.getTarget(_context.getNode(), LINKS.migration$XW2Z);
  }
  public static SNode sourceNodeQuery_15_0(final SourceSubstituteMacroNodeContext _context) {
    SNode result = SConceptOperations.createNewNode(MetaAdapterFactory.getConcept(0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x74cb131f5923b6ecL, "jetbrains.mps.lang.smodel.structure.ReferenceLinkId"));
    ReferenceLinkId__BehaviorDescriptor.setReference_id7jb4LXp9a6q.invoke(result, ScopesTest__BehaviorDescriptor.getCheckingReference_id4IvydoGvimX.invoke(_context.getNode()).getLink());
    return result;
  }
  public static SNode sourceNodeQuery_15_1(final SourceSubstituteMacroNodeContext _context) {
    return (SNode) NodePointer__BehaviorDescriptor.create_id4nxIQVL$eu9.invoke(SNodeOperations.asSConcept(CONCEPTS.NodePointer$6k), _context.getOutputModel(), SLinkOperations.getPointer(_context.getNode(), LINKS.ref$RHE6));
  }
  public static Object templateArgumentQuery_15_0(final TemplateArgumentContext _context) {
    return _context.getOriginalCopiedInputNode(INodesTestMethod__BehaviorDescriptor.getAnnotatedNode_id38gbJV0XvZR.invoke(_context.getNode()));
  }
  public static Object templateArgumentQuery_0_0(final TemplateArgumentContext _context) {
    return INodesTestMethod__BehaviorDescriptor.getAnnotatedNode_id38gbJV0XvZR.invoke(_context.getNode());
  }
  public static Object templateArgumentQuery_13_0(final TemplateArgumentContext _context) {
    return (int) IMigrationUnit__BehaviorDescriptor.fromVersion_id4uVwhQyFcnl.invoke(SLinkOperations.getTarget(_context.getNode(), LINKS.migration$XW2Z));
  }
  public static Object templateArgumentQuery_0_1(final TemplateArgumentContext _context) {
    return SNodeOperations.getParent(SLinkOperations.getTarget(_context.getNode(), LINKS.declaration$hXIv));
  }
  public static Object templateArgumentQuery_3_0(final TemplateArgumentContext _context) {
    return NodesTestCase__BehaviorDescriptor.calcAccessMode_id4wHm_MSTUi_.invoke(((SNode) _context.getVariable("var:nodesTestCase")));
  }
  public static Iterable<SNode> sourceNodesQuery_0_0(final SourceSubstituteMacroNodesContext _context) {
    return SNodeOperations.getNodeDescendants(SNodeOperations.getContainingRoot(_context.getNode()), CONCEPTS.AbstractNodeRuleCheckOperation$eB, false, new SAbstractConcept[]{});
  }
  public static Iterable<SNode> sourceNodesQuery_0_1(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.actualArgument$Owly);
  }
  public static Iterable<SNode> sourceNodesQuery_0_2(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.keyStrokes$GW0n);
  }
  public static Iterable<SNode> sourceNodesQuery_0_3(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), LINKS.statementList$5Thu), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_2_0(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.before$knqU);
  }
  public static Iterable<SNode> sourceNodesQuery_2_1(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.after$4ir);
  }
  public static Iterable<SNode> sourceNodesQuery_3_0(final SourceSubstituteMacroNodesContext _context) {
    return ITestCase__BehaviorDescriptor.getUncommentedTestMethods_id6I8tQNTvi0f.invoke(_context.getNode());
  }
  public static Iterable<SNode> sourceNodesQuery_3_1(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), LINKS.beforeTests$Geqj), LINKS.body$e68K), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_3_2(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), LINKS.afterTests$GqQ8), LINKS.body$e68K), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_3_3(final SourceSubstituteMacroNodesContext _context) {
    return ITestCase__BehaviorDescriptor.getUncommentedTestMethods_id6I8tQNTvi0f.invoke(_context.getNode());
  }
  public static Iterable<SNode> sourceNodesQuery_3_4(final SourceSubstituteMacroNodesContext _context) {
    Set<SNode> set = SetSequence.fromSet(new LinkedHashSet<SNode>());
    for (SNode ref : ListSequence.fromList(SNodeOperations.getNodeDescendants(SLinkOperations.getTarget(_context.getNode(), LINKS.body$5xQk), CONCEPTS.TestNodeReference$hm, false, new SAbstractConcept[]{}))) {
      SetSequence.fromSet(set).addElement(SLinkOperations.getTarget(ref, LINKS.declaration$hXIv));
    }
    return ListSequence.fromListWithValues(new ArrayList<SNode>(), set);
  }
  public static Iterable<SNode> sourceNodesQuery_3_5(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), LINKS.body$5xQk), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_3_6(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.methods$lZ9c);
  }
  public static Iterable<SNode> sourceNodesQuery_3_7(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.parameter$5xBj);
  }
  public static Iterable<SNode> sourceNodesQuery_3_8(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.throwsItem$CdW$);
  }
  public static Iterable<SNode> sourceNodesQuery_6_0(final SourceSubstituteMacroNodesContext _context) {
    return ListSequence.fromList(SLinkOperations.getChildren(SNodeOperations.getNodeAncestor(_context.getNode(), CONCEPTS.NodesTestCase$nd, false, false), LINKS.nodesToCheck$TY$e)).toList();
  }
  public static Iterable<SNode> sourceNodesQuery_6_1(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), LINKS.body$5xQk), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_6_2(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), LINKS.body$5xQk), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_6_3(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), LINKS.body$5xQk), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_6_4(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.annotation$K49I);
  }
  public static Iterable<SNode> sourceNodesQuery_8_0(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), LINKS.code$dfmf), LINKS.statement$53DE);
  }
  public static Iterable<SNode> sourceNodesQuery_8_1(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.logEvents$XchQ);
  }
  public static Iterable<SNode> sourceNodesQuery_13_0(final SourceSubstituteMacroNodesContext _context) {
    return ITestCase__BehaviorDescriptor.getUncommentedTestMethods_id6I8tQNTvi0f.invoke(_context.getNode());
  }
  public static Iterable<SNode> sourceNodesQuery_13_1(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.inputNodes$aDmk);
  }
  public static Iterable<SNode> sourceNodesQuery_13_2(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.outputNodes$IIDt);
  }
  public static Iterable<SNode> sourceNodesQuery_13_3(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.migration$BNbu);
  }
  public static Iterable<SNode> sourceNodesQuery_13_4(final SourceSubstituteMacroNodesContext _context) {
    return (List<SNode>) IgnoreMigrationDataOption__BehaviorDescriptor.getProducingData_id5j9sOBrGDSz.invoke(_context.getNode());
  }
  public static Iterable<SNode> sourceNodesQuery_13_5(final SourceSubstituteMacroNodesContext _context) {
    return SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), LINKS.option$NzUZ), CONCEPTS.IgnoreMigrationDataOption$BF);
  }
  public static Iterable<SNode> sourceNodesQuery_13_6(final SourceSubstituteMacroNodesContext _context) {
    return SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), LINKS.option$NzUZ), CONCEPTS.StableIdOption$36);
  }
  public static Iterable<SNode> sourceNodesQuery_15_0(final SourceSubstituteMacroNodesContext _context) {
    return SNodeOperations.getNodeDescendants(INodesTestMethod__BehaviorDescriptor.getAnnotatedNode_id38gbJV0XvZR.invoke(_context.getNode()), CONCEPTS.AbstractNodeRuleCheckOperation$eB, false, new SAbstractConcept[]{});
  }
  public static Iterable<SNode> sourceNodesQuery_15_1(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.type$8ujZ);
  }
  public static Iterable<SNode> sourceNodesQuery_15_2(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.nodes$Many);
  }
  public static Iterable<SNode> sourceNodesQuery_20_0(final SourceSubstituteMacroNodesContext _context) {
    return SLinkOperations.getChildren(_context.getNode(), LINKS.type$8ujZ);
  }
  public static void mapSrcMacro_post_6_0(final MapSrcMacroPostProcContext _context) {
    TestsUtil.mapSrcExtract(_context.getOutputNode());
  }
  public static void mapSrcMacro_post_19_0(final MapSrcMacroPostProcContext _context) {
    TestsUtil.mapSrcExtract(_context.getOutputNode());
  }
  public static SNode insertMacro_Query_15_0(final InsertMacroContext _context) {
    return _quotation_createNode_x583g4_a0a551();
  }
  public static Object varMacro_Value_3_0(final TemplateVarContext _context) {
    return _context.getNode();
  }
  public static Object varMacro_Value_16_0(final TemplateVarContext _context) {
    return SNodeOperations.getPointer(IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()));
  }
  public static Object varMacro_Value_16_1(final TemplateVarContext _context) {
    return SNodeOperations.getPointer(IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()));
  }
  public static Object varMacro_Value_16_2(final TemplateVarContext _context) {
    return SNodeOperations.getPointer(IReferenceAttachable__BehaviorDescriptor.getReferencedRuleNode_id2wBFdLy8qmt.invoke(_context.getNode()));
  }
  private final Map<String, ReductionRuleCondition> rrcMethods = new HashMap<String, ReductionRuleCondition>();
  {
    int i = 0;
    rrcMethods.put("1217247038443", new RRC(i++));
    rrcMethods.put("1227010390717", new RRC(i++));
    rrcMethods.put("9018216227568987190", new RRC(i++));
    rrcMethods.put("9018216227575214019", new RRC(i++));
    rrcMethods.put("9018216227568987325", new RRC(i++));
    rrcMethods.put("9018216227575244725", new RRC(i++));
    rrcMethods.put("9018216227568987460", new RRC(i++));
    rrcMethods.put("9018216227575273015", new RRC(i++));
  }
  @Override
  @NotNull
  public ReductionRuleCondition getReductionRuleCondition(@NotNull QueryKey identity) {
    ReductionRuleCondition query = identity.forTemplateNode(rrcMethods);
    return (query != null ? query : super.getReductionRuleCondition(identity));
  }
  private static class RRC implements ReductionRuleCondition {
    private final int methodKey;
    public RRC(int methodKey) {
      this.methodKey = methodKey;
    }
    @Override
    public boolean check(ReductionRuleQueryContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.rule_Condition_0_1(ctx);
        case 1:
          return QueriesGenerated.rule_Condition_0_2(ctx);
        case 2:
          return QueriesGenerated.rule_Condition_16_0(ctx);
        case 3:
          return QueriesGenerated.rule_Condition_16_1(ctx);
        case 4:
          return QueriesGenerated.rule_Condition_16_2(ctx);
        case 5:
          return QueriesGenerated.rule_Condition_16_3(ctx);
        case 6:
          return QueriesGenerated.rule_Condition_16_4(ctx);
        case 7:
          return QueriesGenerated.rule_Condition_16_5(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, MapRootRuleCondition> mrrcMethods = new HashMap<String, MapRootRuleCondition>();
  {
    int i = 0;
    mrrcMethods.put("1216994496569", new MRRC(i++));
  }
  @Override
  @NotNull
  public MapRootRuleCondition getMapRootRuleCondition(@NotNull QueryKey identity) {
    MapRootRuleCondition query = identity.forTemplateNode(mrrcMethods);
    return (query != null ? query : super.getMapRootRuleCondition(identity));
  }
  private static class MRRC implements MapRootRuleCondition {
    private final int methodKey;
    public MRRC(int methodKey) {
      this.methodKey = methodKey;
    }
    @Override
    public boolean check(@NotNull MapRootRuleContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.rule_Condition_0_0(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, SourceNodeQuery> snqMethods = new HashMap<String, SourceNodeQuery>();
  {
    int i = 0;
    snqMethods.put("4277730795458378995", new SNQ(i++));
    snqMethods.put("4277730795458379007", new SNQ(i++));
    snqMethods.put("1227010390721", new SNQ(i++));
    snqMethods.put("1863298100471496915", new SNQ(i++));
    snqMethods.put("6610965663658714965", new SNQ(i++));
    snqMethods.put("3455411064017536710", new SNQ(i++));
    snqMethods.put("1221567898644", new SNQ(i++));
    snqMethods.put("8933192351752021163", new SNQ(i++));
    snqMethods.put("6109541130561003091", new SNQ(i++));
    snqMethods.put("9018216227567341616", new SNQ(i++));
    snqMethods.put("9018216227568001580", new SNQ(i++));
  }
  @NotNull
  @Override
  public SourceNodeQuery getSourceNodeQuery(@NotNull QueryKey identity) {
    SourceNodeQuery query = identity.forFunctionNode(snqMethods);
    return (query != null ? query : super.getSourceNodeQuery(identity));
  }
  private static class SNQ implements SourceNodeQuery {
    private final int methodKey;
    public SNQ(int methodKey) {
      this.methodKey = methodKey;
    }
    @Nullable
    public SNode evaluate(@NotNull SourceSubstituteMacroNodeContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.sourceNodeQuery_0_0(ctx);
        case 1:
          return QueriesGenerated.sourceNodeQuery_0_1(ctx);
        case 2:
          return QueriesGenerated.sourceNodeQuery_0_2(ctx);
        case 3:
          return QueriesGenerated.sourceNodeQuery_0_3(ctx);
        case 4:
          return QueriesGenerated.sourceNodeQuery_0_4(ctx);
        case 5:
          return QueriesGenerated.sourceNodeQuery_2_0(ctx);
        case 6:
          return QueriesGenerated.sourceNodeQuery_3_0(ctx);
        case 7:
          return QueriesGenerated.sourceNodeQuery_7_0(ctx);
        case 8:
          return QueriesGenerated.sourceNodeQuery_13_0(ctx);
        case 9:
          return QueriesGenerated.sourceNodeQuery_15_0(ctx);
        case 10:
          return QueriesGenerated.sourceNodeQuery_15_1(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, SourceNodesQuery> snsqMethods = new HashMap<String, SourceNodesQuery>();
  {
    int i = 0;
    snsqMethods.put("9018216227569676628", new SNsQ(i++));
    snsqMethods.put("1225533437710", new SNsQ(i++));
    snsqMethods.put("1863298100471447341", new SNsQ(i++));
    snsqMethods.put("1863298100471541174", new SNsQ(i++));
    snsqMethods.put("3200641626717975126", new SNsQ(i++));
    snsqMethods.put("3200641626717975138", new SNsQ(i++));
    snsqMethods.put("1216995908944", new SNsQ(i++));
    snsqMethods.put("8762304748376777524", new SNsQ(i++));
    snsqMethods.put("8762304748376777926", new SNsQ(i++));
    snsqMethods.put("2966955420488598991", new SNsQ(i++));
    snsqMethods.put("1221567898689", new SNsQ(i++));
    snsqMethods.put("1221567898723", new SNsQ(i++));
    snsqMethods.put("1221567898732", new SNsQ(i++));
    snsqMethods.put("1221567898748", new SNsQ(i++));
    snsqMethods.put("1732396662099747730", new SNsQ(i++));
    snsqMethods.put("1225976113129", new SNsQ(i++));
    snsqMethods.put("7850693985441294353", new SNsQ(i++));
    snsqMethods.put("7850693985441852010", new SNsQ(i++));
    snsqMethods.put("7850693985441359016", new SNsQ(i++));
    snsqMethods.put("9110034126561069135", new SNsQ(i++));
    snsqMethods.put("7633582661619144970", new SNsQ(i++));
    snsqMethods.put("5219531754070592234", new SNsQ(i++));
    snsqMethods.put("5476670926298740062", new SNsQ(i++));
    snsqMethods.put("8951526261572314604", new SNsQ(i++));
    snsqMethods.put("8951526261572327334", new SNsQ(i++));
    snsqMethods.put("6626913010126012622", new SNsQ(i++));
    snsqMethods.put("6109541130560632250", new SNsQ(i++));
    snsqMethods.put("6109541130560697986", new SNsQ(i++));
    snsqMethods.put("6410786926922929635", new SNsQ(i++));
    snsqMethods.put("9018216227569797789", new SNsQ(i++));
    snsqMethods.put("9018216227565843663", new SNsQ(i++));
    snsqMethods.put("9018216227567988375", new SNsQ(i++));
    snsqMethods.put("1138552043284318413", new SNsQ(i++));
  }
  @NotNull
  @Override
  public SourceNodesQuery getSourceNodesQuery(@NotNull QueryKey identity) {
    SourceNodesQuery query = identity.forFunctionNode(snsqMethods);
    return (query != null ? query : super.getSourceNodesQuery(identity));
  }
  private static class SNsQ implements SourceNodesQuery {
    private final int methodKey;
    public SNsQ(int methodKey) {
      this.methodKey = methodKey;
    }
    @NotNull
    public Collection<SNode> evaluate(@NotNull SourceSubstituteMacroNodesContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_0_0(ctx));
        case 1:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_0_1(ctx));
        case 2:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_0_2(ctx));
        case 3:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_0_3(ctx));
        case 4:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2_0(ctx));
        case 5:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2_1(ctx));
        case 6:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_0(ctx));
        case 7:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_1(ctx));
        case 8:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_2(ctx));
        case 9:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_3(ctx));
        case 10:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_4(ctx));
        case 11:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_5(ctx));
        case 12:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_6(ctx));
        case 13:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_7(ctx));
        case 14:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3_8(ctx));
        case 15:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6_0(ctx));
        case 16:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6_1(ctx));
        case 17:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6_2(ctx));
        case 18:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6_3(ctx));
        case 19:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6_4(ctx));
        case 20:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8_0(ctx));
        case 21:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8_1(ctx));
        case 22:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_13_0(ctx));
        case 23:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_13_1(ctx));
        case 24:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_13_2(ctx));
        case 25:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_13_3(ctx));
        case 26:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_13_4(ctx));
        case 27:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_13_5(ctx));
        case 28:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_13_6(ctx));
        case 29:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_15_0(ctx));
        case 30:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_15_1(ctx));
        case 31:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_15_2(ctx));
        case 32:
          return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_20_0(ctx));
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, PropertyValueQuery> pvqMethods = new HashMap<String, PropertyValueQuery>();
  {
    int i = 0;
    pvqMethods.put("3743352646565756793", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "false"));
    pvqMethods.put("1863298100471415971", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "keys"));
    pvqMethods.put("1863298100471541117", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "10"));
    pvqMethods.put("1863298100471541125", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "x"));
    pvqMethods.put("1863298100471541138", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "10"));
    pvqMethods.put("1863298100471541146", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "y"));
    pvqMethods.put("1863298100471541162", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "eventTargetComponent"));
    pvqMethods.put("6270156512831272167", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "15"));
    pvqMethods.put("6270156512831280036", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "15"));
    pvqMethods.put("1230128844193", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "str"));
    pvqMethods.put("5105622777403291104", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "value"));
    pvqMethods.put("3426622257418792365", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
    pvqMethods.put("4853409916376926886", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "project path"));
    pvqMethods.put("4853409916376926895", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "model.fq.name"));
    pvqMethods.put("4853409916376926908", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "false"));
    pvqMethods.put("1216995305410", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "NodesTestCase"));
    pvqMethods.put("1216996538618", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "testMethod"));
    pvqMethods.put("1224603647997", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "TestBody"));
    pvqMethods.put("1221567898677", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("1221567898664", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "varName"));
    pvqMethods.put("1221567898738", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "method"));
    pvqMethods.put("1225976113120", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("1225976126785", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "method"));
    pvqMethods.put("3485705737562158822", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null));
    pvqMethods.put("8933192351751945112", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null));
    pvqMethods.put("4853409916380684716", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "project path"));
    pvqMethods.put("4853409916380684725", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "model.fq.name"));
    pvqMethods.put("1229198684555", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "EditorTestCaseName"));
    pvqMethods.put("1229198973211", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "testMethod"));
    pvqMethods.put("6270156512822429978", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "before"));
    pvqMethods.put("6270156512822432464", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "after"));
    pvqMethods.put("592868908271467485", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "id"));
    pvqMethods.put("4853409916380762276", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "project path"));
    pvqMethods.put("4853409916380762285", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "model.fq.name"));
    pvqMethods.put("4853409916380762298", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "false"));
    pvqMethods.put("5476670926298740050", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "MigrationTestCaseTemplate"));
    pvqMethods.put("5476670926298740069", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "testMethod"));
    pvqMethods.put("8951526261572307416", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("8951526261572327321", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("8951526261572351788", new PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x11157a3736dL, 0x11157a64c91L, "fqClassName"), "MigrationScript"));
    pvqMethods.put("1227269295333973303", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null));
    pvqMethods.put("6970935187426326790", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), null));
    pvqMethods.put("6970935187426344860", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), null));
    pvqMethods.put("6970935187426391366", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "true"));
    pvqMethods.put("9018216227565577040", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
    pvqMethods.put("9018216227565753151", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
    pvqMethods.put("9018216227565794109", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
    pvqMethods.put("7244590811597212600", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("9018216227568987219", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "modelUID"));
    pvqMethods.put("9018216227568987257", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeID"));
    pvqMethods.put("2797132561225421177", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("3929815563185206694", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("9018216227568987354", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "modelUID"));
    pvqMethods.put("9018216227568987392", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeID"));
    pvqMethods.put("3929815563184608253", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("3929815563184639788", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("9018216227568987489", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "modelUID"));
    pvqMethods.put("9018216227568987527", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeID"));
    pvqMethods.put("3929815563184614358", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("3929815563185215431", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("3929815563185218139", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("3929815563185278029", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "expected message"));
    pvqMethods.put("3003602683700031354", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "id"));
    pvqMethods.put("687702229764382874", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
    pvqMethods.put("2966955420488577771", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "test_NodesTestMethod"));
    pvqMethods.put("1138552043288185612", new PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "test_NodesTestMethod"));
    pvqMethods.put("1138552043284318279", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("1138552043284318340", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("1138552043284318401", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("6594856700309246115", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
    pvqMethods.put("6594856700309246135", new PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "nodeId"));
  }
  @NotNull
  @Override
  public PropertyValueQuery getPropertyValueQuery(@NotNull QueryKey identity) {
    PropertyValueQuery query = identity.forTemplateNode(pvqMethods);
    return (query != null ? query : super.getPropertyValueQuery(identity));
  }
  private static class PVQ extends PropertyValueQuery.Base {
    private final int methodKey;
    /*package*/ PVQ(int methodKey, SProperty property, String templateValue) {
      super(property, templateValue);
      this.methodKey = methodKey;
    }
    @Nullable
    public Object evaluate(@NotNull PropertyMacroContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.propertyMacro_GetValue_0_0(ctx);
        case 1:
          return QueriesGenerated.propertyMacro_GetValue_0_1(ctx);
        case 2:
          return QueriesGenerated.propertyMacro_GetValue_0_2(ctx);
        case 3:
          return QueriesGenerated.propertyMacro_GetValue_0_3(ctx);
        case 4:
          return QueriesGenerated.propertyMacro_GetValue_0_4(ctx);
        case 5:
          return QueriesGenerated.propertyMacro_GetValue_0_5(ctx);
        case 6:
          return QueriesGenerated.propertyMacro_GetValue_0_6(ctx);
        case 7:
          return QueriesGenerated.propertyMacro_GetValue_0_7(ctx);
        case 8:
          return QueriesGenerated.propertyMacro_GetValue_0_8(ctx);
        case 9:
          return QueriesGenerated.propertyMacro_GetValue_0_9(ctx);
        case 10:
          return QueriesGenerated.propertyMacro_GetValue_0_10(ctx);
        case 11:
          return QueriesGenerated.propertyMacro_GetValue_1_0(ctx);
        case 12:
          return QueriesGenerated.propertyMacro_GetValue_3_0(ctx);
        case 13:
          return QueriesGenerated.propertyMacro_GetValue_3_1(ctx);
        case 14:
          return QueriesGenerated.propertyMacro_GetValue_3_2(ctx);
        case 15:
          return QueriesGenerated.propertyMacro_GetValue_3_3(ctx);
        case 16:
          return QueriesGenerated.propertyMacro_GetValue_3_4(ctx);
        case 17:
          return QueriesGenerated.propertyMacro_GetValue_3_5(ctx);
        case 18:
          return QueriesGenerated.propertyMacro_GetValue_3_6(ctx);
        case 19:
          return QueriesGenerated.propertyMacro_GetValue_3_7(ctx);
        case 20:
          return QueriesGenerated.propertyMacro_GetValue_3_8(ctx);
        case 21:
          return QueriesGenerated.propertyMacro_GetValue_6_0(ctx);
        case 22:
          return QueriesGenerated.propertyMacro_GetValue_6_1(ctx);
        case 23:
          return QueriesGenerated.propertyMacro_GetValue_7_0(ctx);
        case 24:
          return QueriesGenerated.propertyMacro_GetValue_7_1(ctx);
        case 25:
          return QueriesGenerated.propertyMacro_GetValue_8_0(ctx);
        case 26:
          return QueriesGenerated.propertyMacro_GetValue_8_1(ctx);
        case 27:
          return QueriesGenerated.propertyMacro_GetValue_8_2(ctx);
        case 28:
          return QueriesGenerated.propertyMacro_GetValue_8_3(ctx);
        case 29:
          return QueriesGenerated.propertyMacro_GetValue_8_4(ctx);
        case 30:
          return QueriesGenerated.propertyMacro_GetValue_8_5(ctx);
        case 31:
          return QueriesGenerated.propertyMacro_GetValue_12_0(ctx);
        case 32:
          return QueriesGenerated.propertyMacro_GetValue_13_0(ctx);
        case 33:
          return QueriesGenerated.propertyMacro_GetValue_13_1(ctx);
        case 34:
          return QueriesGenerated.propertyMacro_GetValue_13_2(ctx);
        case 35:
          return QueriesGenerated.propertyMacro_GetValue_13_3(ctx);
        case 36:
          return QueriesGenerated.propertyMacro_GetValue_13_4(ctx);
        case 37:
          return QueriesGenerated.propertyMacro_GetValue_13_5(ctx);
        case 38:
          return QueriesGenerated.propertyMacro_GetValue_13_6(ctx);
        case 39:
          return QueriesGenerated.propertyMacro_GetValue_13_7(ctx);
        case 40:
          return QueriesGenerated.propertyMacro_GetValue_14_0(ctx);
        case 41:
          return QueriesGenerated.propertyMacro_GetValue_15_0(ctx);
        case 42:
          return QueriesGenerated.propertyMacro_GetValue_15_1(ctx);
        case 43:
          return QueriesGenerated.propertyMacro_GetValue_15_2(ctx);
        case 44:
          return QueriesGenerated.propertyMacro_GetValue_15_3(ctx);
        case 45:
          return QueriesGenerated.propertyMacro_GetValue_15_4(ctx);
        case 46:
          return QueriesGenerated.propertyMacro_GetValue_15_5(ctx);
        case 47:
          return QueriesGenerated.propertyMacro_GetValue_15_6(ctx);
        case 48:
          return QueriesGenerated.propertyMacro_GetValue_16_0(ctx);
        case 49:
          return QueriesGenerated.propertyMacro_GetValue_16_1(ctx);
        case 50:
          return QueriesGenerated.propertyMacro_GetValue_16_2(ctx);
        case 51:
          return QueriesGenerated.propertyMacro_GetValue_16_3(ctx);
        case 52:
          return QueriesGenerated.propertyMacro_GetValue_16_4(ctx);
        case 53:
          return QueriesGenerated.propertyMacro_GetValue_16_5(ctx);
        case 54:
          return QueriesGenerated.propertyMacro_GetValue_16_6(ctx);
        case 55:
          return QueriesGenerated.propertyMacro_GetValue_16_7(ctx);
        case 56:
          return QueriesGenerated.propertyMacro_GetValue_16_8(ctx);
        case 57:
          return QueriesGenerated.propertyMacro_GetValue_16_9(ctx);
        case 58:
          return QueriesGenerated.propertyMacro_GetValue_16_10(ctx);
        case 59:
          return QueriesGenerated.propertyMacro_GetValue_16_11(ctx);
        case 60:
          return QueriesGenerated.propertyMacro_GetValue_16_12(ctx);
        case 61:
          return QueriesGenerated.propertyMacro_GetValue_16_13(ctx);
        case 62:
          return QueriesGenerated.propertyMacro_GetValue_17_0(ctx);
        case 63:
          return QueriesGenerated.propertyMacro_GetValue_18_0(ctx);
        case 64:
          return QueriesGenerated.propertyMacro_GetValue_19_0(ctx);
        case 65:
          return QueriesGenerated.propertyMacro_GetValue_19_1(ctx);
        case 66:
          return QueriesGenerated.propertyMacro_GetValue_20_0(ctx);
        case 67:
          return QueriesGenerated.propertyMacro_GetValue_20_1(ctx);
        case 68:
          return QueriesGenerated.propertyMacro_GetValue_20_2(ctx);
        case 69:
          return QueriesGenerated.propertyMacro_GetValue_21_0(ctx);
        case 70:
          return QueriesGenerated.propertyMacro_GetValue_21_1(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, IfMacroCondition> imcMethods = new HashMap<String, IfMacroCondition>();
  {
    int i = 0;
    imcMethods.put("1863298100471541194", new IfMC(i++));
    imcMethods.put("3455411064017514090", new IfMC(i++));
    imcMethods.put("8762304748376777546", new IfMC(i++));
    imcMethods.put("7965618678812608497", new IfMC(i++));
    imcMethods.put("8762304748376777948", new IfMC(i++));
    imcMethods.put("7965618678812561189", new IfMC(i++));
    imcMethods.put("7850693985441304341", new IfMC(i++));
    imcMethods.put("7850693985441852018", new IfMC(i++));
    imcMethods.put("7850693985441525698", new IfMC(i++));
    imcMethods.put("8933192351751931378", new IfMC(i++));
    imcMethods.put("4296455270565126151", new IfMC(i++));
    imcMethods.put("5219531754070576524", new IfMC(i++));
    imcMethods.put("7244590811597310749", new IfMC(i++));
    imcMethods.put("3003602683700024820", new IfMC(i++));
    imcMethods.put("7850693985442098100", new IfMC(i++));
    imcMethods.put("7850693985442105443", new IfMC(i++));
    imcMethods.put("7850693985442093459", new IfMC(i++));
  }
  @NotNull
  @Override
  public IfMacroCondition getIfMacroCondition(@NotNull QueryKey identity) {
    IfMacroCondition query = identity.forTemplateNode(imcMethods);
    return (query != null ? query : super.getIfMacroCondition(identity));
  }
  private static class IfMC implements IfMacroCondition {
    private final int methodKey;
    public IfMC(int methodKey) {
      this.methodKey = methodKey;
    }
    @Override
    public boolean check(@NotNull IfMacroContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.ifMacro_Condition_0_0(ctx);
        case 1:
          return QueriesGenerated.ifMacro_Condition_2_0(ctx);
        case 2:
          return QueriesGenerated.ifMacro_Condition_3_0(ctx);
        case 3:
          return QueriesGenerated.ifMacro_Condition_3_1(ctx);
        case 4:
          return QueriesGenerated.ifMacro_Condition_3_2(ctx);
        case 5:
          return QueriesGenerated.ifMacro_Condition_3_3(ctx);
        case 6:
          return QueriesGenerated.ifMacro_Condition_6_0(ctx);
        case 7:
          return QueriesGenerated.ifMacro_Condition_6_1(ctx);
        case 8:
          return QueriesGenerated.ifMacro_Condition_6_2(ctx);
        case 9:
          return QueriesGenerated.ifMacro_Condition_7_0(ctx);
        case 10:
          return QueriesGenerated.ifMacro_Condition_8_0(ctx);
        case 11:
          return QueriesGenerated.ifMacro_Condition_8_1(ctx);
        case 12:
          return QueriesGenerated.ifMacro_Condition_15_0(ctx);
        case 13:
          return QueriesGenerated.ifMacro_Condition_17_0(ctx);
        case 14:
          return QueriesGenerated.ifMacro_Condition_19_0(ctx);
        case 15:
          return QueriesGenerated.ifMacro_Condition_19_1(ctx);
        case 16:
          return QueriesGenerated.ifMacro_Condition_19_2(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for if macro %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, ReferenceTargetQuery> rtqMethods = new HashMap<String, ReferenceTargetQuery>();
  {
    rtqMethods.put("1225533437716", new RTQ(0, null));
    rtqMethods.put("6270156512831270410", new RTQ(1, "eventTargetComponent"));
    rtqMethods.put("6270156512831272175", new RTQ(2, "x"));
    rtqMethods.put("6270156512831280044", new RTQ(3, "y"));
    rtqMethods.put("720061494230698595", new RTQ(4, "testMethod"));
    rtqMethods.put("1618594767402225461", new RTQ(5, "ERROR"));
  }
  @NotNull
  @Override
  public ReferenceTargetQuery getReferenceTargetQuery(@NotNull QueryKey queryKey) {
    ReferenceTargetQuery query = queryKey.forTemplateNode(rtqMethods);
    return (query != null ? query : super.getReferenceTargetQuery(queryKey));
  }
  private static class RTQ extends ReferenceTargetQuery.Base {
    private final int methodKey;
    /*package*/ RTQ(int methodKey, String templateValue) {
      super(templateValue);
      this.methodKey = methodKey;
    }
    @Nullable
    public Object evaluate(@NotNull ReferenceMacroContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.referenceMacro_GetReferent_0_0(ctx);
        case 1:
          return QueriesGenerated.referenceMacro_GetReferent_0_1(ctx);
        case 2:
          return QueriesGenerated.referenceMacro_GetReferent_0_2(ctx);
        case 3:
          return QueriesGenerated.referenceMacro_GetReferent_0_3(ctx);
        case 4:
          return QueriesGenerated.referenceMacro_GetReferent_3_0(ctx);
        case 5:
          return QueriesGenerated.referenceMacro_GetReferent_8_0(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, VariableValueQuery> vvqMethods = new HashMap<String, VariableValueQuery>();
  {
    vvqMethods.put("1138552043284828839", new VVQ(0));
    vvqMethods.put("9018216227568987309", new VVQ(1));
    vvqMethods.put("9018216227568987444", new VVQ(2));
    vvqMethods.put("9018216227568987579", new VVQ(3));
  }
  @NotNull
  @Override
  public VariableValueQuery getVariableValueQuery(@NotNull QueryKey queryKey) {
    VariableValueQuery query = queryKey.forTemplateNode(vvqMethods);
    return (query != null ? query : super.getVariableValueQuery(queryKey));
  }
  private static class VVQ implements VariableValueQuery {
    private final int methodKey;
    /*package*/ VVQ(int methodKey) {
      this.methodKey = methodKey;
    }
    @Nullable
    public Object evaluate(@NotNull TemplateVarContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.varMacro_Value_3_0(ctx);
        case 1:
          return QueriesGenerated.varMacro_Value_16_0(ctx);
        case 2:
          return QueriesGenerated.varMacro_Value_16_1(ctx);
        case 3:
          return QueriesGenerated.varMacro_Value_16_2(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, CallArgumentQuery> caqMethods = new HashMap<String, CallArgumentQuery>();
  {
    caqMethods.put("687702229764234605", new CAQ(0));
    caqMethods.put("687702229764180539", new CAQ(1));
    caqMethods.put("6109541130561031805", new CAQ(2));
    caqMethods.put("3426622257418792372", new CAQ(3));
    caqMethods.put("5200912498968586944", new CAQ(4));
  }
  @NotNull
  @Override
  public CallArgumentQuery getTemplateCallArgumentQuery(@NotNull QueryKey queryKey) {
    CallArgumentQuery query = queryKey.forTemplateNode(caqMethods);
    return (query != null ? query : super.getTemplateCallArgumentQuery(queryKey));
  }
  private static class CAQ implements CallArgumentQuery {
    private final int methodKey;
    /*package*/ CAQ(int methodKey) {
      this.methodKey = methodKey;
    }
    @Nullable
    public Object evaluate(@NotNull TemplateArgumentContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.templateArgumentQuery_15_0(ctx);
        case 1:
          return QueriesGenerated.templateArgumentQuery_0_0(ctx);
        case 2:
          return QueriesGenerated.templateArgumentQuery_13_0(ctx);
        case 3:
          return QueriesGenerated.templateArgumentQuery_0_1(ctx);
        case 4:
          return QueriesGenerated.templateArgumentQuery_3_0(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, InsertMacroQuery> imqMethods = new HashMap<String, InsertMacroQuery>();
  {
    imqMethods.put("687702229764256819", new IMQ(0));
  }
  @NotNull
  @Override
  public InsertMacroQuery getInsertMacroQuery(@NotNull QueryKey queryKey) {
    InsertMacroQuery query = queryKey.forTemplateNode(imqMethods);
    return (query != null ? query : super.getInsertMacroQuery(queryKey));
  }
  private static class IMQ implements InsertMacroQuery {
    private final int methodKey;
    /*package*/ IMQ(int methodKey) {
      this.methodKey = methodKey;
    }
    @Nullable
    public SNode evaluate(@NotNull InsertMacroContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          return QueriesGenerated.insertMacro_Query_15_0(ctx);
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private final Map<String, MapPostProcessor> mppMethods = new HashMap<String, MapPostProcessor>();
  {
    mppMethods.put("7850693985439959766", new PPQ(0));
    mppMethods.put("7850693985442075272", new PPQ(1));
  }
  @NotNull
  @Override
  public MapPostProcessor getMapPostProcessor(@NotNull QueryKey queryKey) {
    MapPostProcessor query = queryKey.forTemplateNode(mppMethods);
    return (query != null ? query : super.getMapPostProcessor(queryKey));
  }
  private static class PPQ implements MapPostProcessor {
    private final int methodKey;
    /*package*/ PPQ(int methodKey) {
      this.methodKey = methodKey;
    }
    public void invoke(@NotNull MapSrcMacroPostProcContext ctx) throws GenerationFailureException {
      switch (methodKey) {
        case 0:
          QueriesGenerated.mapSrcMacro_post_6_0(ctx);
          return;
        case 1:
          QueriesGenerated.mapSrcMacro_post_19_0(ctx);
          return;
        default:
          throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
      }
    }
  }
  private static SNode _quotation_createNode_x583g4_a0a551() {
    SNode quotedNode_1 = null;
    SNode quotedNode_2 = null;
    SNodeBuilder nb = new SNodeBuilder(null, null).init(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, "jetbrains.mps.baseLanguageInternal"), 0x111fb5bb1f2L, "InternalVariableReference"));
    quotedNode_1 = nb.getResult();
    nb.setProperty(MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5dbc49L, "name"), "nodeToCheck");
    SNodeBuilder nb1 = new SNodeBuilder(null, null).init(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, "jetbrains.mps.lang.smodel"), 0x108f968b3caL, "SNodeType"));
    quotedNode_2 = nb1.getResult();
    nb1.setReference(MetaAdapterFactory.getReferenceLink(0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x108f968b3caL, 0x1090e46ca51L, "concept"), "r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)/1068431790191");
    quotedNode_1.addChild(MetaAdapterFactory.getContainmentLink(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5c4f4cL, "type"), quotedNode_2);
    return quotedNode_1;
  }

  private static final class CONCEPTS {
    /*package*/ static final SConcept NodesTestCase$nd = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b55b49e46L, "jetbrains.mps.lang.test.structure.NodesTestCase");
    /*package*/ static final SConcept EditorOperation$OD = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11daf16c21cL, "jetbrains.mps.lang.test.structure.EditorOperation");
    /*package*/ static final SConcept TestInfo$9q = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x46bca02bfb6e730aL, "jetbrains.mps.lang.test.structure.TestInfo");
    /*package*/ static final SConcept AnonymousCellAnnotation$hB = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e31babe12L, "jetbrains.mps.lang.test.structure.AnonymousCellAnnotation");
    /*package*/ static final SConcept BaseCommentAttribute$nv = MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x3dcc194340c24debL, "jetbrains.mps.lang.core.structure.BaseCommentAttribute");
    /*package*/ static final SConcept NodePointer$6k = MetaAdapterFactory.getConcept(0x446c26eb2b7b4bf0L, 0x9b35f83fa582753eL, 0x502fe7548a0e35fL, "jetbrains.mps.lang.modelapi.structure.NodePointer");
    /*package*/ static final SConcept AbstractNodeRuleCheckOperation$eB = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x6cbc57bb7a42d28aL, "jetbrains.mps.lang.test.structure.AbstractNodeRuleCheckOperation");
    /*package*/ static final SConcept TestNodeReference$hm = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x119e1d33213L, "jetbrains.mps.lang.test.structure.TestNodeReference");
    /*package*/ static final SConcept IgnoreMigrationDataOption$BF = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x54c97349dbb25c33L, "jetbrains.mps.lang.test.structure.IgnoreMigrationDataOption");
    /*package*/ static final SConcept StableIdOption$36 = MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x58f7b0be85950c61L, "jetbrains.mps.lang.test.structure.StableIdOption");
  }

  private static final class LINKS {
    /*package*/ static final SContainmentLink operation$gs9E = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, 0x116b46b36c4L, "operation");
    /*package*/ static final SReferenceLink intention$m3$T = MetaAdapterFactory.getReferenceLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11d72af5892L, 0x11d72afec1bL, "intention");
    /*package*/ static final SContainmentLink nodeToEdit$SO8n = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e314b20e0L, 0x11e314b78e4L, "nodeToEdit");
    /*package*/ static final SContainmentLink testNodeBefore$aUeC = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e314b20e0L, 0x2b9f5f5eae643562L, "testNodeBefore");
    /*package*/ static final SContainmentLink nodeToCheck$OBcW = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b5a38fc01L, 0x11b5a397b92L, "nodeToCheck");
    /*package*/ static final SContainmentLink result$sGjR = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e314b20e0L, 0x11e314bf3d3L, "result");
    /*package*/ static final SContainmentLink testNodeResult$bm9v = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e314b20e0L, 0x2b9f5f5eae643585L, "testNodeResult");
    /*package*/ static final SReferenceLink intention$gTRv = MetaAdapterFactory.getReferenceLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x83a4b2183e44b99L, 0x83a4b2183e44b9aL, "intention");
    /*package*/ static final SReferenceLink migration$XW2Z = MetaAdapterFactory.getReferenceLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x5bf7864595dddf89L, 0x5bf7864595dddf8aL, "migration");
    /*package*/ static final SReferenceLink intention$MKHQ = MetaAdapterFactory.getReferenceLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x110822ebf819cfd5L, 0x110822ebf819cfd8L, "intention");
    /*package*/ static final SContainmentLink type$ZQJx = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b03034484L, 0x11b0304d838L, "type");
    /*package*/ static final SReferenceLink ref$RHE6 = MetaAdapterFactory.getReferenceLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x32ba5b0ec25fe9f3L, 0x383e5e55de89bc1fL, "ref");
    /*package*/ static final SContainmentLink expectedMessage$6o6s = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x6cbc57bb7a42d28aL, 0x9dc8d126017d5dbL, "expectedMessage");
    /*package*/ static final SReferenceLink quickfix$q6rO = MetaAdapterFactory.getReferenceLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x4915dd563bf07730L, 0x6a6d08c403e6ad97L, "quickfix");
    /*package*/ static final SReferenceLink member$oLt6 = MetaAdapterFactory.getReferenceLink(0x443f4c36fcf54eb6L, 0x95008d06ed259e3eL, 0x118bca97396L, 0x118bcb657ecL, "member");
    /*package*/ static final SContainmentLink statementList$5Thu = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x2ec0ea8c5348f79L, 0xfc092b6b78L, "statementList");
    /*package*/ static final SContainmentLink statement$53DE = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L, 0xf8cc6bf961L, "statement");
    /*package*/ static final SContainmentLink message$SzPZ = MetaAdapterFactory.getContainmentLink(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110e5250918L, 0x110e52557daL, "message");
    /*package*/ static final SContainmentLink beforeTests$Geqj = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b55b49e46L, 0x2045125020efb661L, "beforeTests");
    /*package*/ static final SContainmentLink afterTests$GqQ8 = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b55b49e46L, 0x2045125020efb66cL, "afterTests");
    /*package*/ static final SContainmentLink parameter$TyS_ = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11d72af5892L, 0x7bf9131d2468ca92L, "parameter");
    /*package*/ static final SContainmentLink logEvents$XchQ = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e314b20e0L, 0x486f8079df2fd868L, "logEvents");
    /*package*/ static final SContainmentLink nodeToCheck$bx55 = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11ada7b9a44L, 0x11ada7c82e2L, "nodeToCheck");
    /*package*/ static final SContainmentLink actionReference$wbpR = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x614c5660cccba06bL, 0xf48c620dd89b137L, "actionReference");
    /*package*/ static final SContainmentLink actionReference$weYP = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0xb4991e715d477d8L, 0xb4991e715d477daL, "actionReference");
    /*package*/ static final SContainmentLink message$FmaW = MetaAdapterFactory.getContainmentLink(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110e5064e8fL, 0x110e50678bdL, "message");
    /*package*/ static final SContainmentLink returnType$5xoi = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b1fcL, 0xf8cc56b1fdL, "returnType");
    /*package*/ static final SReferenceLink declaration$hXIv = MetaAdapterFactory.getReferenceLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x119e1d33213L, 0x119e1d356c6L, "declaration");
    /*package*/ static final SContainmentLink actualArgument$Owly = MetaAdapterFactory.getContainmentLink(0x443f4c36fcf54eb6L, 0x95008d06ed259e3eL, 0x118bd711e29L, 0x118bd877799L, "actualArgument");
    /*package*/ static final SContainmentLink keyStrokes$GW0n = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e223413eeL, 0x11e22346d26L, "keyStrokes");
    /*package*/ static final SContainmentLink before$knqU = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11a2f985130L, 0x11a2f989195L, "before");
    /*package*/ static final SContainmentLink after$4ir = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11a2f985130L, 0x11a2f98d40fL, "after");
    /*package*/ static final SContainmentLink body$e68K = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L, 0x108bbd29b4aL, "body");
    /*package*/ static final SContainmentLink body$5xQk = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b1fcL, 0xf8cc56b1ffL, "body");
    /*package*/ static final SContainmentLink methods$lZ9c = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b55b49e46L, 0x11b5a762e97L, "methods");
    /*package*/ static final SContainmentLink parameter$5xBj = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b1fcL, 0xf8cc56b1feL, "parameter");
    /*package*/ static final SContainmentLink throwsItem$CdW$ = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b1fcL, 0x10f383d6949L, "throwsItem");
    /*package*/ static final SContainmentLink nodesToCheck$TY$e = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b55b49e46L, 0x11b78c37cc6L, "nodesToCheck");
    /*package*/ static final SContainmentLink annotation$K49I = MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x114a6be947aL, 0x114a6beb0bdL, "annotation");
    /*package*/ static final SContainmentLink code$dfmf = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11e314b20e0L, 0x11e314cad13L, "code");
    /*package*/ static final SContainmentLink inputNodes$aDmk = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x4c010b30d9be4be7L, 0x4c010b30d9be4be8L, "inputNodes");
    /*package*/ static final SContainmentLink outputNodes$IIDt = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x4c010b30d9be4be7L, 0x4c010b30d9be5494L, "outputNodes");
    /*package*/ static final SContainmentLink migration$BNbu = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x4c010b30d9be4be7L, 0x5bf7864595df8b02L, "migration");
    /*package*/ static final SContainmentLink option$NzUZ = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x4c010b30d9be4be7L, 0x54c97349dbb26f7fL, "option");
    /*package*/ static final SContainmentLink type$8ujZ = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x15404cb86444497L, 0x15404cb86444498L, "type");
    /*package*/ static final SContainmentLink nodes$Many = MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x7181d929c720809L, 0x32ba5b0ec25fea03L, "nodes");
  }

  private static final class PROPS {
    /*package*/ static final SProperty includeSelf$q9ZQ = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11ae82817b8L, 0x33f30f661f90afb9L, "includeSelf");
    /*package*/ static final SProperty keys$Zxe6 = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11db9c07f43L, 0x11db9e4d87aL, "keys");
    /*package*/ static final SProperty x$m_ec = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x2ec0ea8c5348f79L, 0x2ec0ea8c53e9ee7L, "x");
    /*package*/ static final SProperty y$m_td = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x2ec0ea8c5348f79L, 0x2ec0ea8c53e9ee8L, "y");
    /*package*/ static final SProperty x$X3u1 = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x2ec0ea8c55ca0a3L, 0x2ec0ea8c55ca1f0L, "x");
    /*package*/ static final SProperty y$X3H2 = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x2ec0ea8c55ca0a3L, 0x2ec0ea8c55ca1f1L, "y");
    /*package*/ static final SProperty name$MnvL = MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name");
    /*package*/ static final SProperty allowWarnings$lvb6 = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b07d3d54aL, 0xbd376db27cdbaaeL, "allowWarnings");
    /*package*/ static final SProperty allowErrors$luW5 = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b07d3d54aL, 0xbd376db27cdbaadL, "allowErrors");
    /*package*/ static final SProperty includeSelf$xNXw = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b07d3d54aL, 0x33f30f661f8cdca2L, "includeSelf");
    /*package*/ static final SProperty text$ppyZ = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x9dc8d126017d59cL, 0x9dc8d126017d59dL, "text");
    /*package*/ static final SProperty level$MerT = MetaAdapterFactory.getProperty(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x486f8079df2fd630L, 0x486f8079df380e64L, "level");
  }
}
