def elementDeclaration(self, validationModelXbrl=None):
        elementModelXbrl = self.modelXbrl
        if validationModelXbrl is not None and validationModelXbrl != elementModelXbrl: 
            # use physical element declaration in specified modelXbrl
            return validationModelXbrl.qnameConcepts.get(self.elementQname)
        # use logical element declaration in element's own modelXbrl
        return elementModelXbrl.qnameConcepts.get(self.qname)
dataset/ETHPy150Open Arelle/Arelle/arelle/ModelObject.py/ModelObject.elementDeclaration/original