Reports return statements with null return values. While occasionally useful, this construct may make the code more prone to failing with a NullPointerException, and often indicates that the developer doesn't really understand the class' intended semantics. Methods annotated with a @Nullable annotation will be ignored by this inspection.

Use the first checkbox below to let this inspection ignore private methods.

Use the bottom three checkboxes to specify whether null values on array returns, collection object returns, plain object returns, or a combination of the three should be reported. Return of null in methods with return type java.util.Optional are always reported.

Use the Configure annotations button to specify @Nullable annotations.