private static boolean isCollectionOfPrunedShape(Shape shape, Map<String, Shape> shapes) {
        if (isListShape(shape) &&
            !shapes.containsKey(shape.getListMember().getShape())) {
            return true;
        }
        if (isMapShape(shape) &&
            (!shapes.containsKey(shape.getMapKeyType().getShape()) ||
             !shapes.containsKey(shape.getMapValueType().getShape()))) {
            return true;
        }
        return false;
    }
Is the shape a collection-type that targets a pruned shape as one of its member types?
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/customization/processors/PruneUnsupportedShapesProcessor.java