@Nls
  @RequiresReadLock
  @Nullable
  private String getWarning(List<SearchEverywhereContributor<?>> contributors) {
    if (myProject == null) return null;

    boolean isDumb = DumbService.isDumb(myProject);
    boolean isIncomplete = !myProject.getService(IncompleteDependenciesService.class).getState().isComplete();
    if (!isDumb && !isIncomplete) return null;

    boolean containsPSIContributors = ContainerUtil.exists(contributors, c -> c instanceof AbstractGotoSEContributor ||
                                                                              c instanceof PSIPresentationBgRendererWrapper);
    if (!containsPSIContributors) return null;

    return isDumb
           ? IdeBundle.message("dumb.mode.results.might.be.incomplete")
           : IdeBundle.message("incomplete.mode.results.might.be.incomplete");
  }
@Nls
  @RequiresReadLock
  @Nullable
  private String getWarning(List<SearchEverywhereContributor<?>> contributors)