code: static boolean referencesSuper(Node n) {
      Node curr = n.getFirstChild();
      while (curr != null) {
        if (containsType(curr, Token.SUPER, node -> !node.isClass())) {
          return true;
        }
        curr = curr.getNext();
      }
      return false;
    }
docs: Returns true if the current scope contains references to the 'super' keyword.
  Note that if there are classes declared inside the current class, super calls which
  reference those classes are not reported.