It’s a method that enables pattern matching on distiguish types.

You can find a perfect showcase here.