Find OverlayPositionBuilder.connectedTo calls

Proprietary

Finds calls of connectedTo on the OverlayPositionBuilder that overlay.position() returns. CDK 13 removed it with ConnectedPositionStrategy, so call flexibleConnectedTo(origin) and pass the positions to withPositions instead.

org.openrewrite.angular.cdk.FindOverlayConnectedTo
mod run . --recipe=org.openrewrite.angular.cdk.FindOverlayConnectedTo

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.