public static MemoryAgent createMemoryAgent(@NotNull EvaluationContextImpl evaluationContext) throws EvaluateException {
    MemoryAgentImpl memoryAgent = new MemoryAgentImpl();
    memoryAgent.myCapabilities = memoryAgent.initializeCapabilities(evaluationContext);
    if (memoryAgent.myCapabilities.isDisabled()) {
      return DISABLED;
    }
    return memoryAgent;
  }
public static MemoryAgent createMemoryAgent(@NotNull EvaluationContextImpl evaluationContext)