PyFile:NestedIncompleteFStringFragmentRecoveryStoppedAtStatementOnlyKeyword.py
  PyAssignmentStatement
    PyTargetExpression: s
      PsiElement(Py:IDENTIFIER)('s')
    PsiWhiteSpace(' ')
    PsiElement(Py:EQ)('=')
    PsiWhiteSpace(' ')
    PyStringLiteralExpression: {f"{foo"'
print(42)

      PyFormattedStringElement
        PsiElement(Py:FSTRING_START)('f'')
        PyFStringFragment
          PsiElement(Py:FSTRING_FRAGMENT_START)('{')
          PyStringLiteralExpression: {foo"'
print(42)

            PyFormattedStringElement
              PsiElement(Py:FSTRING_START)('f"')
              PyFStringFragment
                PsiElement(Py:FSTRING_FRAGMENT_START)('{')
                PyReferenceExpression: foo
                  PsiElement(Py:IDENTIFIER)('foo')
                PsiErrorElement:Unexpected expression part
                  PsiElement(Py:SINGLE_QUOTED_STRING)('"'')
                  PsiWhiteSpace('\n')
                  PsiElement(Py:IDENTIFIER)('print')
                  PsiElement(Py:LPAR)('(')
                  PsiElement(Py:INTEGER_LITERAL)('42')
                  PsiElement(Py:RPAR)(')')
                  PsiWhiteSpace('\n')
                PsiErrorElement:Type conversion, ':' or '}' expected
                  <empty list>
              PsiErrorElement:" expected
                <empty list>
        PsiErrorElement:' expected
          <empty list>
  PyRaiseStatement
    PsiElement(Py:RAISE_KEYWORD)('raise')
    PsiWhiteSpace(' ')
    PyReferenceExpression: Exception
      PsiElement(Py:IDENTIFIER)('Exception')