docs: private void pushState(boolean isStatic) {
          stateStack.add(new StateStackElement());
          currentScope = new VariableScope(currentScope);
          currentScope.setInStaticContext(isStatic);
      }