private static byte @Nullable [] getImageBytes(EvaluationContextImpl evaluationContext, Value obj, String methodName)
    throws EvaluateException {
    EvaluationContextImpl copyContext = evaluationContext.createEvaluationContext(obj);
    StringReference bytes =
      (StringReference)DebuggerUtilsImpl.invokeHelperMethod(copyContext, ImageSerializer.class, methodName, Collections.singletonList(obj));
    if (bytes != null) {
      return bytes.value().getBytes(StandardCharsets.ISO_8859_1);
    }
    return null;
  }
private static byte @Nullable [] getImageBytes(EvaluationContextImpl evaluationContext, Value obj, String methodName)