def viewDtsElement(self, modelDocument, referenceType, indent, visited):
        visited.add(modelDocument)
        dtsObjectType = modelDocument.gettype()
        attr = {"file": modelDocument.basename, "referenceType": referenceType}
        if not modelDocument.inDTS:
            attr["inDTS"] = "false"
        self.addRow(["{0} - {1}".format(modelDocument.basename, dtsObjectType)], treeIndent=indent,
                    xmlRowElementName=dtsObjectType, xmlRowEltAttr=attr, xmlCol0skipElt=True)
        for referencedDocument, ref in modelDocument.referencesDocument.items():
            if visited not in referencedDocument:
                self.viewDtsElement(referencedDocument, ref.referenceType, indent + 1, visited)
        visited.remove(modelDocument)
dataset/ETHPy150Open Arelle/Arelle/arelle/ViewFileDTS.py/ViewDTS.viewDtsElement/swapped operands of `not in`