private static void setAgentPathPropertyValue(@NotNull EvaluationContextImpl evaluationContext,
                                                @NotNull ClassType systemClassType,
                                                @NotNull String agentPath) throws EvaluateException {
    DebugProcessImpl debugProcess = evaluationContext.getDebugProcess();
    Method setPropertyMethod = DebuggerUtils.findMethod(
      systemClassType, "setProperty", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"
    );
    if (setPropertyMethod == null) return;

    ObjectReference agentPathMirror = getStringReference(evaluationContext, agentPath);
    ObjectReference propertyNameMirror = getStringReference(evaluationContext, "intellij.memory.agent.path");
    debugProcess.invokeMethod(
      evaluationContext, systemClassType, setPropertyMethod, Arrays.asList(propertyNameMirror, agentPathMirror)
    );
  }
private static void setAgentPathPropertyValue(@NotNull EvaluationContextImpl evaluationContext,
                                                @NotNull ClassType systemClassType,
                                                @NotNull String agentPath)