public final Color[] getSimilarityColorRamp() {
    ensureTheme();
    if (similarityColorRamp != null) {
      return similarityColorRamp;
    }

    List<String> ramp = theme.getSimilarityRampList();
    if (ramp.isEmpty()) {
      ramp = DEFAULT_THEME.getSimilarityRampList();
    }

    List<Color> colors;
    try {
      colors = ramp.stream().map(Color::decode).collect(Collectors.toList());
    } catch (final NumberFormatException e) {
      logger.atWarning().withCause(e).log(
          "Color hex value failed to parse, reverting to default color ramp");
      colors =
          DEFAULT_THEME.getSimilarityRampList().stream()
              .map(Color::decode)
              .collect(Collectors.toList());
    }
    if (!colors.isEmpty()) {
      similarityColorRamp = colors.toArray(new Color[0]);
    }
    return similarityColorRamp;
  }
Sets and gets the syntax highlighting color values and font settings for the UI.
java/ui/src/main/java/com/google/security/zynamics/bindiff/config/ThemeConfigItem.java