I just want to compound on this one.
If you get rear ended at a stoplight or stopsign it’s very likely the motorcyclist is not at fault. The motorcyclist suffers significantly more bodily injury than a car driver would in a similar collision. As a motorcyclist, you can tell that sometimes people just don’t see you because their brain is looking for something car shaped.
When I ride, every time I stop at a stoplight or stopsign I am watching my rear view mirror to judge if the person behind me is going to stop, and I have an exit strategy if they don’t. Ive had some close calls.