public static Color calcColor(final double value) {
    if (value < 0 || value > 1) {
      return Colors.GRAY192;
    }
    final Color[] colorRamp =
        BinDiffConfig.getInstance().getThemeSettings().getSimilarityColorRamp();
    return colorRamp[(int) (value * (colorRamp.length - 1))];
  }
Calculates a match color based on the value. Uses the same color palette as the C++ plugin
code.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/tabpanels/projecttabpanel/treenodepanels/tables/renderers/SimilarityConfidenceCellRenderer.java