Specific folds will "fold" too much text that should not be folded
Some folds are folded perfectly such as the for-loop with ranges...
... Notice that the i, start, and end identifiers are still white. They are not folded yellow (due to my color scheme). This is a great fold. However...
Picture
A
... the Math.abs(...) folding appears to be a bad fold. A lot of the identifiers inside the function should not be folded yellow, but it should be the color of what those identifiers should normally be. The hex value should be blue in my case and I should have the parameter hint shown, etc.
Here is what my non-folded code looks like...
Picture
B
Note: sometimes I can get IntelliJ to unfold to the correct amount; however, it will always be folded to Picture A first. Usually, I when I click on the fold, and it will unfold from Picture A to Picture B. However, sometimes it will unfold from Picture A to Picture C So, it seems like this fold might be doing 1 extra step too much???
Picture
C
The Cast fold also has the same issue, but that one is much harder to solve. It kind of makes my Android Activity classes' OnCreate(...) method overly folded. I wonder if there is a way of showing a more minimal folding impact on the code???
Just to throw out some ideas, instead of the folded text being val fab = findViewById(R.id.fab) it could be...

Thanks for examples! I will take a close look.
It looks #103 is about the same problem. Feel free to close it.