private @NotNull HighlightData getRainbowTemp(TextAttributesKey @NotNull [] rainbowTempKeys,
                                                int startOffset, int endOffset) {
    String id = myEditor.getDocument().getText(TextRange.create(startOffset, endOffset));
    int index = UsedColors.getOrAddColorIndex((EditorImpl)myEditor, id, rainbowTempKeys.length);
    return new HighlightData(startOffset, endOffset, rainbowTempKeys[index]);
  }
private @NotNull HighlightData getRainbowTemp(TextAttributesKey @NotNull [] rainbowTempKeys,
                                                int startOffset, int endOffset)