private Plane extractPlane(Shape shape) {
        if (shape.hasTrait(ControlPlaneTrait.ID)) {
            return Plane.CONTROL;
        } else if (shape.hasTrait(DataPlaneTrait.ID)) {
            return Plane.DATA;
        } else {
            return null;
        }
    }
Checks if the given shape within a service has a resolvable plane.

@param service Service to check.
@param operationOrResource Operation or resource within the service to check.
@return Returns true if the shape has a resolvable plane.
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/PlaneIndex.java