PyFile:PatternMatchingLeadingAndTrailingComments.py
  PyMatchStatement
    PsiElement(Py:MATCH_KEYWORD)('match')
    PsiWhiteSpace(' ')
    PyReferenceExpression: x
      PsiElement(Py:IDENTIFIER)('x')
    PsiElement(Py:COLON)(':')
    PsiWhiteSpace('\n    ')
    PsiComment(Py:END_OF_LINE_COMMENT)('# match leading comment')
    PsiWhiteSpace('\n    ')
    PyCaseClause
      PsiElement(Py:CASE_KEYWORD)('case')
      PsiWhiteSpace(' ')
      PyLiteralPattern
        PyNumericLiteralExpression
          PsiElement(Py:INTEGER_LITERAL)('1')
      PsiElement(Py:COLON)(':')
      PsiWhiteSpace('\n        ')
      PyStatementList
        PyPassStatement
          PsiElement(Py:PASS_KEYWORD)('pass')
        PsiWhiteSpace('\n        ')
        PsiComment(Py:END_OF_LINE_COMMENT)('# case trailing comment')
    PsiWhiteSpace('\n    ')
    PsiComment(Py:END_OF_LINE_COMMENT)('# match trailing comment')
  PsiWhiteSpace('\n')
  PsiComment(Py:END_OF_LINE_COMMENT)('# unrelated comment')