public void processResults() {
      List<SamDescriptor> descriptors = calcDescriptors(this);

      if (scope instanceof GlobalSearchScope &&
          !performSearchUsingCompilerIndices(descriptors, (GlobalSearchScope)scope, project, consumer)) {
        return;
      }

      PsiManager.getInstance(project).runInBatchFilesMode(() -> {
        processOffsets(descriptors, this);
        return null;
      });
    }
public void processResults()