Problems with code folding and code format function

Description

Initial situation:
--------------------------------------------------------------
In the code view click "CTRL" + "SHIFT" + "F".

--------------------------------------------------------------

Actual behavior:
--------------------------------------------------------------
The hidden imports are now displayed:

--------------------------------------------------------------

Expected behaviour:
--------------------------------------------------------------
No problems between the code folding and the code formatting.

--------------------------------------------------------------

Comment:
--------------------------------------------------------------

--------------------------------------------------------------

Environment

None

Assignee

FH

Reporter

SS

Labels

None

Epic/Theme

None

Components

Affects versions

Priority

Trivial