code: public void checkType(JSField elem, int indir) throws JMFSchemaViolationException {
      if (!equivFields(element, elem) || indir != indirect)
        throw new JMFSchemaViolationException("Incorrect list element types");
    }
docs: SchemaViolationException if not