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