docs: public Color toAWTColor(TextColor color, boolean isForeground, boolean inBoldContext) {
          if(color instanceof TextColor.ANSI) {
              return colorPalette.get((TextColor.ANSI)color, isForeground, inBoldContext && useBrightColorsOnBold);
          }
          return color.toColor();
      }