private static Color @Nullable [] getColorsFromCache(@NotNull TextAttributesScheme colorsScheme) {
    List<Color> colors = new ArrayList<>();
    boolean validCache = true;
    for (TextAttributesKey tempKey : RAINBOW_TEMP_KEYS) {
      TextAttributes attributes = colorsScheme.getAttributes(tempKey);
      if (attributes == null) {
        validCache = false;
        break;
      }
      colors.add(getRainbowColorFromAttribute(attributes));
    }
    if (!validCache) {
      return null;
    }
    return colors.toArray(new Color[0]);
  }
private static Color @Nullable [] getColorsFromCache(@NotNull TextAttributesScheme colorsScheme)