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.
null
Optional
Optional.empty()
Optional.absent()
New in 2017.2