class C { static M foo() { return null; } G bar(G g, G gg) { return g; } void m(boolean b){ bar(b ? foo() : null, foo()); } }