Maybe annotations in IntelliJ IDEA is that you are looking for:

Showing and hiding annotations
- Open the desired file in the editor.
- To show annotations, right-click the left gutter, and select Annotate:

- To hide annotations, right-click the annotations gutter, and choose Close Annotations.