static A onEnabledChanged(A c, Runnable r) { if (c != null && c != null) swing { c.getAccessibleContext().addPropertyChangeListener(evt -> r.run()); } ret c; }