code: private void addConnectingShadowIfNecessary(float nextShadowAngle) {
          if (currentShadowAngle == nextShadowAngle) {
              // Previously drawn shadow lines up with the next shadow, so don't draw anything.
              return;
          }
          float shadowSweep = (nextShadowAngle - currentShadowAngle + 360) % 360;
          if (shadowSweep > 180) {
              // Shadows are actually overlapping, so don't draw anything.
              return;
          }
          PathArcOperation pathArcOperation = new PathArcOperation(endX, endY, endX, endY);
          pathArcOperation.startAngle = currentShadowAngle;
          pathArcOperation.sweepAngle = shadowSweep;
          shadowCompatOperations.add(new ArcShadowOperation(pathArcOperation));
          currentShadowAngle = nextShadowAngle;
      }
docs: Create an {@link ArcShadowOperation} to fill in a shadow between the currently drawn shadow
  and the next shadow angle, if there would be a gap.