void (String[] args) { final Function<@NotNull Integer, @NotNull Integer> functionNotNull = impossibleToReturnNull(); final Integer nonNullResult = functionNotNull.apply(5); if (<warning descr="Condition 'nonNullResult == null' is always 'false'">nonNullResult == null</warning>) System.out.println("NULL"); else System.out.println("NOT NULL"); }