private Color[] toColorsForEditor(Color[] baseColors) {
    Color tagBackground = myEditor.getBackgroundColor();

    Color[] resultColors = new Color[baseColors.length];
    // todo: make configurable
    double transparency = WebEditorOptions.getInstance().getTagTreeHighlightingOpacity() * 0.01;

    for (int i = 0; i < resultColors.length; i++) {
      Color color = baseColors[i];

      Color color1 = color != null
                           ? UIUtil.makeTransparent(color, tagBackground, transparency)
                           : null;
      resultColors[i] = color1;
    }

    return resultColors;
  }
private Color[] toColorsForEditor(Color[] baseColors)