code: public static TypeDescription resolve(TypeDescription typeDescription, TypeDescription targetType) {
          int arity = 0;
          TypeDescription componentType = typeDescription;
          while (componentType.isArray()) {
              componentType = componentType.getComponentType();
              arity++;
          }
          return componentType.represents(TargetType.class)
                  ? TypeDescription.ArrayProjection.of(targetType, arity)
                  : typeDescription;
      }
docs: Resolves the given type description to the supplied target type if it represents the {@link TargetType} placeholder.
  Array types are resolved to their component type and rebuilt as an array of the actual target type, if necessary.
  
  @param typeDescription The type description that might represent the {@link TargetType} placeholder.
  @param targetType      The actual target type.
  @return A description of the resolved type.