def METHOD_NAME(self, contract: "Contract") -> bool:
    """
    Check if the element is declared by the contract
    :param contract:
    :return:
    """
    return self.contract_declarer == contract