This inspection warns when null is assigned to Optional variable or returned from method returning Optional. It's recommended to use Optional.empty() (or Optional.absent() for Guava) to denote an empty value.

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

New in 2017.2