Determining the Return Type of Expression

Type Info is very helpful on a per-expression basis to understand your code.

Place the caret at the necessary code element and press ⌃⇧P (macOS) / Ctrl+Shift+P (Windows/Linux) or select View | Type Info from the main menu.


Related Resources

Convert Class to Record
Convert Class to Record
Use inspections to convert classes to Java 16 records.
Create New Class
Create New Class
Quickly add new classes to your project.
Extend Selection
Extend Selection
Extend and shrink your current code selection.