static A printUnlessNull(A a) { if (a != null) print(a); ret a; } static A printUnlessNull(S s, A a) { if (a != null) print(s, a); ret a; }