PsiJavaFile:SwitchRulesWithPattern12.java
  PsiSwitchLabeledRule
    PsiKeyword:case('case')
    PsiWhiteSpace(' ')
    PsiCaseLabelElementList
      PsiTypeTestPattern
        PsiPatternVariable:when
          PsiModifierList:
            <empty list>
          PsiTypeElement:when
            PsiJavaCodeReferenceElement:when
              PsiIdentifier:when('when')
              PsiReferenceParameterList
                <empty list>
          PsiWhiteSpace(' ')
          PsiIdentifier:when('when')
    PsiWhiteSpace(' ')
    PsiJavaToken:ARROW('->')
    PsiWhiteSpace(' ')
    PsiBlockStatement
      PsiCodeBlock
        PsiJavaToken:LBRACE('{')
        PsiJavaToken:RBRACE('}')