Case matching as recommended by IntelliJ.