'Optional' can be replaced with sequence of 'if' statements
Optional call chains that can be replaced with a sequence of
After the quick-fix is applied:
java.util.Optional appeared in Java 8. This inspection can help to downgrade for backward compatibility with earlier Java versions.
New in 2020.2
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3