Run Inspections Before Commit
Catch all issues before your code before you commit it.
Committing error-free code reduces the time it takes for reviews to go happen and makes everyone happy. Since not all errors may be caught by tests, you can choose to run Inspections before a commit. This will improve your chances to have fewer bugs in code.
Invoke the Commit using ⌘K (macOS) / Ctrl+K (Windows/Linux), then select the Commit options, and select the Analyze code feature.