Object (Object foo, Object bar) { if (foo == null) { println(<weak_warning descr="Value 'foo' is always 'null'"><caret>foo</weak_warning>); println(<weak_warning descr="Value 'foo' is always 'null'">foo</weak_warning>); return <warning descr="'null' is returned by the method which is not declared as @Nullable"><weak_warning descr="Value 'foo' is always 'null'">foo</weak_warning></warning>; } if (bar == null) { test2(<warning descr="Passing 'null' argument to parameter annotated as @NotNull"><weak_warning descr="Value 'bar' is always 'null'">bar</weak_warning></warning>); } return foo; }