private static Color @NotNull [] generateColorSequence(@NotNull TextAttributesScheme colorsScheme) {
    String colorDump = ApplicationManager.getApplication().isUnitTestMode()
                       ? UNIT_TEST_COLORS
                       : Registry.get("rainbow.highlighter.colors").asString();

    List<String> registryColors = StringUtil.split(colorDump, ",");
    if (!registryColors.isEmpty()) {
      return registryColors.stream().map(s -> ColorUtil.fromHex(s.trim())).toArray(Color[]::new);
    }

    Color[] colors = getColorsFromCache(colorsScheme);
    if (colors != null) {
      return colors;
    }
    return generateColors(colorsScheme);
  }
private static Color @NotNull [] generateColorSequence(@NotNull TextAttributesScheme colorsScheme)