docs: public Scope getDefiningScope() {
          Scope enclosing = getEnclosingScope();
          String name = getIdentifier();
          return enclosing == null ? null : enclosing.getDefiningScope(name);
      }