@Romain
What I do when I want to clarify procedure structures is :
1 Create a new unit. (File->New->Unit)
2 Select/copy syntactically coherent full procedure/function block(s) from the source you are working on and you want to JEDI CF (From procedure SomeProc(etc... to the matching end;)
3 Paste selection it in the unit (1) at the correct position, that is in implementation for complete procedure/function(s).
4 Ctrl-D (JCF) on the unit (1).
5 If worked, paste back reformatted code to the working unit.
6 Close and discard unit created in (1)