static A setBoundsSafely(A a, Rect r) { if (a != null && r != null) swing { setBounds(a, r); moveWindowIntoScreen(a); } ret a; }