static void addMouseMotionListener(final JComponent c, final MouseMotionListener l) { if (c != null) swing { c.addMouseMotionListener(l); } }