void () { Optional<String> optional = Optional.empty(); final boolean present = <warning descr="Result of 'optional.isPresent()' is always 'false'">optional.isPresent()</warning>; // optional = Optional.empty(); if (<warning descr="Condition 'present' is always 'false'">present</warning>) { final String string = optional.get(); System.out.println(string); } }