if(Optional.isPresent())
This inspection only reports if the language level of the project or module is 8 or higher