code: private boolean baseUsedInClass(Node n){
      for (Node curr = n; curr != null; curr = curr.getParent()){
        if (curr.isClassMembers()) {
          return true;
        }
      }
      return false;
    }
docs: Verify if goog.base call is used in a class