View all code problems in a file
There's no need to scroll down a file to see all detected problems: they are gathered in a dedicated Problems tool window, where you can review them, apply a suggested fix, or fix them your own way.
Select View | Tool Windows | Problems from the main menu or click the Inspections widget in the top-right corner of the editor to open the tool window.