@Override
    public List<JavaReferenceInfo> fetchInstances(@NotNull EvaluationContextImpl evaluationContext) {
      InstanceProviderEx provider = (InstanceProviderEx)getInstancesProvider();
      if (provider.returnAllInstancesOfAClass()) {
        return MemoryAgentUtil.calculateSizes(evaluationContext, myClassType, MAX_TREE_NODE_COUNT,
                                              getProgress().getProgressIndicator());
      }
      else {
        List<JavaReferenceInfo> instances = getInstances(MAX_TREE_NODE_COUNT);
        List<ObjectReference> references = ContainerUtil.map(instances, JavaReferenceInfo::getObjectReference);
        return MemoryAgentUtil.calculateSizesByObjects(evaluationContext, references, getProgress().getProgressIndicator());
      }
    }
@Override
    public List<JavaReferenceInfo> fetchInstances(@NotNull EvaluationContextImpl evaluationContext)