public class MacroIntentionsUtil {
public static SNode getContextNodeConcept_fast(SNode contextNode) {
SNode enclosingMacro = findOuterMacro(contextNode);
if ((enclosingMacro == null)) {
return QueriesUtil.getApplicableConcept_fromEnvironment(contextNode);
<BUG>}
return null;</BUG>
}
public static SNode getContextNodeConcept_slow(SNode contextNode) {
SNode enclosingMacro = findOuterMacro(contextNode);

public class MacroIntentionsUtil {
public static SNode getContextNodeConcept_fast(SNode contextNode) {
SNode enclosingMacro = findOuterMacro(contextNode);
if ((enclosingMacro == null)) {
return QueriesUtil.getApplicableConcept_fromEnvironment(contextNode);
}
if (SNodeOperations.isInstanceOf(enclosingMacro, "jetbrains.mps.lang.generator.structure.SourceSubstituteMacro")) {
return getConceptFrom(SNodeOperations.cast(enclosingMacro, "jetbrains.mps.lang.generator.structure.SourceSubstituteMacro"));
}
return null;
}
public static SNode getContextNodeConcept_slow(SNode contextNode) {
SNode enclosingMacro = findOuterMacro(contextNode);
