code: private void calculateWorkspaceDataSize()
     {
        long dataSize;
        try
        {
           dataSize = getWorkspaceDataSizeDirectly();
        }
        catch (QuotaManagerException e1)
        {
           throw new IllegalStateException("Can't calculate workspace data size", e1);
        }
  
        ChangesItem changesItem = new ChangesItem();
        changesItem.updateWorkspaceChangedSize(dataSize);
  
        Runnable task = new ApplyPersistedChangesTask(context, changesItem);
        task.run();
     }
docs: Calculates and accumulates workspace data size.