How does pattern matching for instanceof simplify Java code?

Technical