void (Cursor cursor) { super.setCursor(cursor); Component layeredPane = ComponentUtil.findParentByCondition(this, component -> component instanceof LoadingDecorator.CursorAware); if (layeredPane != null) { layeredPane.setCursor(cursor); } }