def METHOD_NAME(self) -> T:
    if AllowedStack.top:
        return self._value
    current_frame = self._frame_ident(_getframe().f_back.f_back.f_back)
    import traceback
    traceback.print_stack()
    if current_frame == self._frame:
        return self._value
    else:
        raise SecurityError(
            f"Protected {self._tag_type} value from "
            f"field {self._field_name} accessed outside origin frame."
        )