private static @Nullable Color getRainbowColorFromAttribute(@NotNull TextAttributes attributes) {
    return attributes.getForegroundColor();
  }
private static @Nullable Color getRainbowColorFromAttribute(@NotNull TextAttributes attributes)