private static @Nls @NotNull HtmlChunk getScope(@NotNull Project project, @NotNull VirtualFile file) {
    FileColorManagerImpl colorManager = (FileColorManagerImpl)FileColorManager.getInstance(project);
    Color color = colorManager.getRendererBackground(file);
    if (color == null) {
      return HtmlChunk.empty();
    }
    for (NamedScopesHolder holder : NamedScopesHolder.getAllNamedScopeHolders(project)) {
      for (NamedScope scope : holder.getScopes()) {
        PackageSet packageSet = scope.getValue();
        String name = scope.getScopeId();
        if (packageSet instanceof PackageSetBase && ((PackageSetBase)packageSet).contains(file, project, holder) &&
            colorManager.getScopeColor(name) == color) {
          return HtmlChunk.p().children(
            GRAYED_ELEMENT.addText(CodeInsightBundle.message("documentation.file.scope.label")),
            HtmlChunk.nbsp(),
            HtmlChunk.span().attr("bgcolor", "#" + ColorUtil.toHex(color)).addText(scope.getPresentableName())
          );
        }
      }
    }
    return HtmlChunk.empty();
  }
private static @Nls @NotNull HtmlChunk getScope(@NotNull Project project, @NotNull VirtualFile file)