docs: protected void fixClonedDeclarations( GroupElement and, Map<String, Class<?>> globals ) {
          Stack<RuleConditionElement> contextStack = new Stack<RuleConditionElement>();
          DeclarationScopeResolver resolver = new DeclarationScopeResolver( globals,
                                                                            contextStack );
  
          contextStack.push( and );
          processElement( resolver,
                          contextStack,
                          and );
          contextStack.pop();
      }