void (PlaceInGrid place, boolean detached) { switch (place) { case bottom -> setBottomDetached(detached); case center -> setCenterDetached(detached); case left -> setLeftDetached(detached); case right -> setRightDetached(detached); } }