'How to remove these gaps between lines in intellij Idea

Recently I started seeing these lines gaps between lines in IntelliJ Idea and strangely this is only happening for variable declaration.

I tried reducing line height but that is not working.

How to switch it off? Image of gaps between lines



Solution 1:[1]

Please try to disable Editor>Inlay Hints>Code Vision

Solution 2:[2]

Just press Ctrl-Shift-A in Windows or Option-Command-L

Solution 3:[3]

Just press Ctrl-Shift-L in Windows or Option-Command-L on Mac OS

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 y.bedrov
Solution 2 Iskandar Nizomov
Solution 3 Iskandar Nizomov