public static int insertSubstitution(StringBuilder result, int offset, final ParameterInfo info, String image) {
    if (!image.isEmpty()) {
      result.insert(offset + info.getStartIndex(), image);
      offset += image.length();
    }
    return offset;
  }
public static int insertSubstitution(StringBuilder result, int offset, final ParameterInfo info, String image)