public int countRoots(@NotNull FileHighlightingSetting setting) {
    return myHighlightSettings.values()
      .stream()
      .flatMap(array -> Stream.of(array))
      .mapToInt(s -> s == setting ? 1 : 0)
      .sum();
  }
public int countRoots(@NotNull FileHighlightingSetting setting)