private Plane resolvePlane(ToShapeId service, ShapeId operationOrResource) {
        Plane result = null;

        for (PathFinder.Path path : pathFinder.search(service, SELECTOR)) {
            for (Shape shape : path.getShapes()) {
                Plane nextPlane = extractPlane(shape);
                if (nextPlane != null) {
                    result = nextPlane;
                }
                if (shape.getId().equals(operationOrResource)) {
                    return result;
                }
            }
        }

        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