code: private static double[] transformToLabelProjection(
              final MathTransform toLabelProjection,
              final Coordinate borderIntersection) {
          try {
              double[] labelProj = new double[2];
              toLabelProjection
                      .transform(new double[]{borderIntersection.x, borderIntersection.y}, 0, labelProj, 0, 1);
              return labelProj;
          } catch (TransformException e) {
              throw new RuntimeException(e);
          }
      }
docs: CSON: ParameterNumber