sclass RGBImageRectAndState > RGBImageAndRect { S state; *() {} *(RGBImage *image, Rect *rect, S *state) {} *(RGBImage *image, RectAndState rectAndState) { if (rectAndState != null) { rect = rectAndState.r; state = rectAndState.state; } } }